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:
Markus Schirp 2018-12-24 16:15:42 +00:00
parent ff0503f0f2
commit 7b0375e248
2 changed files with 10 additions and 0 deletions

5
meta/file.rb Normal file
View file

@ -0,0 +1,5 @@
# frozen_string_literal: true
Mutant::Meta::Example.add do
source '__FILE__'
end

5
meta/line.rb Normal file
View file

@ -0,0 +1,5 @@
# frozen_string_literal: true
Mutant::Meta::Example.add do
source '__LINE__'
end