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
283 B
Ruby
13 lines
283 B
Ruby
require 'spec_helper'
|
|
|
|
describe Mutant::Subject, '.new' do
|
|
subject { object.new(matcher, context, ast) }
|
|
|
|
let(:object) { described_class }
|
|
|
|
let(:matcher) { mock('Matcher') }
|
|
let(:context) { mock('Context') }
|
|
let(:ast) { mock('AST') }
|
|
|
|
it { should be_frozen }
|
|
end
|