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