2012-07-26 13:25:23 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2012-08-01 12:34:03 -04:00
|
|
|
describe Mutant::Subject, '#context' do
|
2012-07-26 13:25:23 -04:00
|
|
|
subject { object.context }
|
|
|
|
|
2013-01-13 16:32:03 -05:00
|
|
|
let(:class_under_test) do
|
|
|
|
Class.new(described_class)
|
|
|
|
end
|
|
|
|
|
|
|
|
let(:object) { class_under_test.new(context, node) }
|
|
|
|
let(:node) { mock('Node') }
|
2012-07-26 13:25:23 -04:00
|
|
|
let(:context) { mock('Context') }
|
|
|
|
|
|
|
|
it { should be(context) }
|
|
|
|
|
|
|
|
it_should_behave_like 'an idempotent method'
|
|
|
|
end
|