free_mutant/spec/unit/mutant/subject/context_spec.rb

18 lines
408 B
Ruby
Raw Normal View History

require 'spec_helper'
2012-08-01 12:34:03 -04:00
describe Mutant::Subject, '#context' do
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) { double('Node') }
let(:context) { double('Context') }
it { should be(context) }
it_should_behave_like 'an idempotent method'
end