free_mutant/spec/unit/mutant/subject/node_spec.rb
2012-08-01 18:34:03 +02:00

12 lines
288 B
Ruby

require 'spec_helper'
describe Mutant::Subject, '#node' do
subject { object.node }
let(:object) { described_class.new(context, node) }
let(:node) { mock('Node') }
let(:context) { mock('Context') }
it { should be(node) }
it_should_behave_like 'an idempotent method'
end