Sha256: 48a1e9f4d07fe959417fc1c7c6c30b453580494ff171c3a8de38a4697a882341
Contents?: true
Size: 571 Bytes
Versions: 7
Compression:
Stored size: 571 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
7 entries across 7 versions & 1 rubygems