From 7b0375e248d64e025f940356936b08291703d350 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Mon, 24 Dec 2018 16:15:42 +0000 Subject: [PATCH] Add explicit support for __FILE__ and __LINE__ * These where handled correctly for a while now, but we never had specs for them. [Fix #434] --- meta/file.rb | 5 +++++ meta/line.rb | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 meta/file.rb create mode 100644 meta/line.rb diff --git a/meta/file.rb b/meta/file.rb new file mode 100644 index 00000000..d6a14fc0 --- /dev/null +++ b/meta/file.rb @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +Mutant::Meta::Example.add do + source '__FILE__' +end diff --git a/meta/line.rb b/meta/line.rb new file mode 100644 index 00000000..a64fd518 --- /dev/null +++ b/meta/line.rb @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +Mutant::Meta::Example.add do + source '__LINE__' +end