![Markus Schirp](/assets/img/avatar_default.png)
* 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.
14 lines
345 B
Ruby
14 lines
345 B
Ruby
require 'spec_helper'
|
|
|
|
describe Mutant::Subject, '#context' do
|
|
subject { object.context }
|
|
|
|
let(:object) { described_class.new(matcher, context, ast) }
|
|
let(:matcher) { mock('Matcher') }
|
|
let(:ast) { mock('AST') }
|
|
let(:context) { mock('Context') }
|
|
|
|
it { should be(context) }
|
|
|
|
it_should_behave_like 'an idempotent method'
|
|
end
|