Sha256: 69d07f4780636f485d7079b82b6839a2098c8b44035897b6f43f8607865c6651
Contents?: true
Size: 579 Bytes
Versions: 16
Compression:
Stored size: 579 Bytes
Contents
require File.expand_path('../abstract_unit', __FILE__) class TestEqual < ActiveSupport::TestCase fixtures :capitols def test_new assert_not_equal(Capitol.new, Capitol.new) end def test_same_new it = Capitol.new assert_equal(it, it) end def test_same first = Capitol.find(['Canada', 'Ottawa']) second = Capitol.find(['Canada', 'Ottawa']) assert_equal(first, second) end def test_different first = Capitol.find(['Mexico', 'Mexico City']) second = Capitol.find(['Canada', 'Ottawa']) assert_not_equal(first, second) end end
Version data entries
16 entries across 16 versions & 1 rubygems