Skip to content

Commit

Permalink
Remove unnecessary calls to Country.get in tests.
Browse files Browse the repository at this point in the history
Fixes assigned by unused variable warning on Ruby 2.5.0.
  • Loading branch information
philr committed Jan 27, 2018
1 parent 1c12363 commit 806014b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/tc_country.rb
Expand Up @@ -190,15 +190,13 @@ def test_reload
# If country gets reloaded for some reason, it needs to force a reload of
# the country index.

c = Country.get('US')
assert_equal('US', Country.get('US').code)

# Suppress redefined method warnings.
without_warnings do
load 'tzinfo/country.rb'
end

c = Country.get('US')
assert_equal('US', Country.get('US').code)
end

Expand Down

0 comments on commit 806014b

Please sign in to comment.