Add explicit support for __FILE__ and __LINE__
* These where handled correctly for a while now, but we never had specs for them. [Fix #434]
This commit is contained in:
parent
ff0503f0f2
commit
7b0375e248
2 changed files with 10 additions and 0 deletions
5
meta/file.rb
Normal file
5
meta/file.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
Mutant::Meta::Example.add do
|
||||||
|
source '__FILE__'
|
||||||
|
end
|
5
meta/line.rb
Normal file
5
meta/line.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
Mutant::Meta::Example.add do
|
||||||
|
source '__LINE__'
|
||||||
|
end
|
Loading…
Reference in a new issue