Skip to content

Commit

Permalink
Merge pull request rails#44569 from ghousemohamed/removed-unused-meth…
Browse files Browse the repository at this point in the history
…od-argument

Removed options method argument from application tests in railties
  • Loading branch information
kamipo committed Mar 4, 2022
2 parents d8e17c5 + c4266c6 commit bd4d97c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/test/application/test_test.rb
Expand Up @@ -101,7 +101,7 @@ def test_failure
end
RUBY

output = run_test_file("unit/failing_test.rb", env: { "BACKTRACE" => "1" })
output = run_test_file("unit/failing_test.rb")
assert_match %r{test/unit/failing_test\.rb}, output
assert_match %r{test/unit/failing_test\.rb:4}, output
end
Expand Down Expand Up @@ -331,7 +331,7 @@ def assert_successful_test_run(name)
result
end

def run_test_file(name, options = {})
def run_test_file(name)
rails "test", "#{app_path}/test/#{name}", allow_failure: true
end
end
Expand Down

0 comments on commit bd4d97c

Please sign in to comment.