Skip to content

Commit

Permalink
Add dummy assertions so Rails stops complaining tests have no assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Jan 6, 2025
1 parent a5b3d24 commit 3810466
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class LanguageTrackingIntegrationTest < CapybaraIntegrationTestCase
def test_language_tracking
lang_session = Capybara::Session.new(:rack_test, Rails.application)
login(mary, session: lang_session)
assert_equal(true, true) # Rails complains this test has no assertions
mary.locale = "el"
I18n.with_locale(:el) do
mary.save
Expand Down
2 changes: 2 additions & 0 deletions test/integration/capybara/random_integration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def test_the_homepage

def test_uptime_probe
visit("/test")
assert_selector("body")
end

def test_login_and_logout
Expand Down Expand Up @@ -45,6 +46,7 @@ def test_sessions
login(mary, session: mary_session)
katrina_session = open_session
login(katrina, session: katrina_session)
assert_equal(true, true) # Rails complains this test has no assertions

rolf_session.visit("/info/intro")
rolf_session.assert_text("rolf")
Expand Down

0 comments on commit 3810466

Please sign in to comment.