2012-07-26 19:25:23 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2012-08-01 18:34:03 +02:00
|
|
|
describe Mutant::Subject, '#context' do
|
2012-07-26 19:25:23 +02:00
|
|
|
subject { object.context }
|
|
|
|
|
2012-07-31 04:10:37 +02:00
|
|
|
let(:object) { described_class.new(context, ast) }
|
2012-07-26 19:25:23 +02:00
|
|
|
let(:ast) { mock('AST') }
|
|
|
|
let(:context) { mock('Context') }
|
|
|
|
|
|
|
|
it { should be(context) }
|
|
|
|
|
|
|
|
it_should_behave_like 'an idempotent method'
|
|
|
|
end
|