test/country_test.rb in phonie-1.0.4 vs test/country_test.rb in phonie-2.0.0

- old
+ new

@@ -1,27 +1,27 @@ require File.expand_path(File.dirname(__FILE__) + '/test_helper') class CountryTest < Phonie::TestCase def test_find_by_country_name country = Phonie::Country.find_by_name('canada') - assert_equal country.name, "Canada" + assert_equal "Canada", country.name country = Phonie::Country.find_by_name('Canada') - assert_equal country.name, "Canada" + assert_equal "Canada", country.name assert_nil Phonie::Country.find_by_name(nil) assert_nil Phonie::Country.find_by_country_code(nil) assert_equal [], Phonie::Country.find_all_by_phone_code(nil) end def test_find_by_country_code country = Phonie::Country.find_by_country_code('NO') - assert_equal country.name, "Norway" + assert_equal "Norway", country.name end def test_find_all_by_phone_code countries = Phonie::Country.find_all_by_phone_code('47') - assert_equal countries.length, 1 - assert_equal countries.first.name, "Norway" + assert_equal 1, countries.length + assert_equal "Norway", countries.first.name end end