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) }
|
2013-07-14 13:01:30 -04:00
|
|
|
let(:node) { double('Node') }
|
|
|
|
let(:context) { double('Context') }
|
2012-07-26 13:25:23 -04:00
|
|
|
|
|
|
|
it { should be(context) }
|
|
|
|
|
|
|
|
it_should_behave_like 'an idempotent method'
|
|
|
|
end
|