Skip to content

Commit

Permalink
Fix tests for newer Rails/I18n versions
Browse files Browse the repository at this point in the history
  • Loading branch information
janko committed Oct 12, 2024
1 parent 62ac0a5 commit 4405924
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/feature_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

visit "/login"
assert_match "Admin Login", page.text
assert_match "translation missing: en.rodauth.admin.password_label", page.text
assert_match "Translation missing: en.rodauth.admin.password_label", page.text
end

it "returns missing translation by default" do
Expand All @@ -84,7 +84,7 @@
end

visit "/"
assert_match "translation missing: en.rodauth.foo", page.html
assert_match "Translation missing: en.rodauth.foo", page.html
end

it "falls back to auth value when configured" do
Expand Down Expand Up @@ -119,7 +119,7 @@
visit "/"
end

assert_equal "translation missing: en.rodauth.foo", error.message
assert_equal "Translation missing: en.rodauth.foo", error.message
end

it "still raises when fallback is configured" do
Expand Down

0 comments on commit 4405924

Please sign in to comment.