[rubygems/rubygems] Prefer assert_include
over mere assert
https://github.com/rubygems/rubygems/commit/140405cee6
This commit is contained in:
parent
a651903a86
commit
8142728b5a
@ -72,7 +72,7 @@ class TestUpdateSuggestion < Gem::TestCase
|
|||||||
assert_equal 123_456_789, Gem.configuration.last_update_check
|
assert_equal 123_456_789, Gem.configuration.last_update_check
|
||||||
|
|
||||||
# test last check is written to config file
|
# test last check is written to config file
|
||||||
assert File.read(Gem.configuration.state_file_name).match("123456789")
|
assert_include File.read(Gem.configuration.state_file_name), "123456789"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user