Class: TestMobilyApiResponseEquality
- Inherits:
-
MiniTest::Unit::TestCase
- Object
- MiniTest::Unit::TestCase
- TestMobilyApiResponseEquality
- Defined in:
- lib/mobily/test/tc_api_response_equality.rb
Instance Method Summary collapse
Instance Method Details
#test_equal ⇒ Object
10 11 12 13 14 15 |
# File 'lib/mobily/test/tc_api_response_equality.rb', line 10 def test_equal one = MobilyApiResponse.new('1', 'Success') two = MobilyApiResponse.new('1', 'Success') assert_equal one, two assert_equal true, one.eql?(two) end |
#test_not_equal ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/mobily/test/tc_api_response_equality.rb', line 17 def test_not_equal one = MobilyApiResponse.new('1', 'Success') two = MobilyApiResponse.new('2', 'Success') assert_equal false, one == two assert_equal false, one.eql?(two) assert_equal false, 'string'==one end |