Update path name to report the filename better on failure
This commit is contained in:
parent
8f46081d59
commit
d675c9258d
1 changed files with 4 additions and 4 deletions
|
@ -6,9 +6,9 @@ describe Mutant::Loader::Eval, '.run' do
|
|||
|
||||
subject { object.run(node, mutation_subject) }
|
||||
|
||||
let(:object) { described_class }
|
||||
let(:path) { 'test.rb' }
|
||||
let(:line) { 1 }
|
||||
let(:object) { described_class }
|
||||
let(:path) { __FILE__ }
|
||||
let(:line) { 1 }
|
||||
|
||||
let(:mutation_subject) do
|
||||
double('Subject', :source_path => path, :source_line => line)
|
||||
|
@ -43,6 +43,6 @@ describe Mutant::Loader::Eval, '.run' do
|
|||
subject
|
||||
::SomeNamespace::Bar
|
||||
.instance_method(:some_method)
|
||||
.source_location.should eql(['test.rb', 3])
|
||||
.source_location.should eql([__FILE__, 3])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue