test/fixtures/eval_nested_fixture.rb in bindex-0.7.0 vs test/fixtures/eval_nested_fixture.rb in bindex-0.8.0
- old
+ new
@@ -1,13 +1,17 @@
-class EvalNestedFixture
- def call
- tap { raise_an_error_in_eval }
- rescue => exc
- exc
- end
+module Skiptrace
+ module EvalNestedFixture
+ extend self
- private
+ def call
+ tap { raise_an_error_in_eval }
+ rescue => exc
+ exc
+ end
+ private
+
def raise_an_error_in_eval
eval 'raise', binding, __FILE__, __LINE__
end
+ end
end