2012-07-26 13:25:23 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2012-07-30 22:10:37 -04:00
|
|
|
describe Mutant::Matcher, '#context' do
|
2012-07-26 13:25:23 -04:00
|
|
|
subject { object.context }
|
|
|
|
|
|
|
|
let(:object) { described_class.new(constant_name) }
|
|
|
|
let(:constant_name) { 'Foo' }
|
|
|
|
let(:context) { mock('Context') }
|
|
|
|
|
|
|
|
before do
|
|
|
|
Mutant::Context.stub(:build => context)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
#it { should be(context) }
|
|
|
|
|
|
|
|
#it_should_behave_like 'an idempotent method'
|
|
|
|
end
|