459d028de1
* Expand attr_reader :name, to def name; @name; end As attr_reader defined methods do not have a valid source location. * Expose more internal state to allow the generation of nice match identifications. Needs to be cleaned up.
13 lines
336 B
Ruby
13 lines
336 B
Ruby
require 'spec_helper'
|
|
|
|
describe Mutant::Subject, '#node' do
|
|
subject { object.node }
|
|
let(:object) { described_class.new(matcher, context, node) }
|
|
let(:matcher) { mock('Matcher') }
|
|
let(:node) { mock('Node') }
|
|
let(:context) { mock('Context') }
|
|
|
|
it { should be(node) }
|
|
|
|
it_should_behave_like 'an idempotent method'
|
|
end
|