test/helper.rb in assert-2.19.2 vs test/helper.rb in assert-2.19.3
- old
+ new
@@ -14,16 +14,17 @@
module Assert::Test::TestHelpers
def self.included(receiver)
receiver.class_eval do
setup do
@test_run_results = []
- @run_callback = proc { |result| @test_run_results << result }
+ @run_callback = proc{ |result| @test_run_results << result }
end
end
private
+ # rubocop:disable Lint/NestedMethodDefinition
def test_run_callback
@run_callback
end
def test_run_results(type = nil)
@@ -40,7 +41,8 @@
end
def last_test_run_result
@test_run_results.last
end
+ # rubocop:enable Lint/NestedMethodDefinition
end
end