Permalink
Browse files

Proper expected/actual ordering for lib tests

  • Loading branch information...
1 parent 88cd915 commit 704c0005a87384ce4ef8668fd8e582bb1e246f6a @tnm tnm committed Dec 30, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/lib_test.rb
View
@@ -65,11 +65,11 @@ def test_raw_to_hex_with_invalid_size_raises_type_error
end
def test_minimize_oid_with_no_block
- assert_equal Rugged::minimize_oid(@@oids), 12
+ assert_equal 12, Rugged::minimize_oid(@@oids)
end
def test_minimize_oid_with_min_length
- assert_equal Rugged::minimize_oid(@@oids, 20), 20
+ assert_equal 20, Rugged::minimize_oid(@@oids, 20)
end
def test_minimize_oid_with_block
@@ -82,7 +82,7 @@ def test_minimize_oid_with_block
"68d041ee999c"
]
- assert_equal minimized_oids, expected_oids
+ assert_equal expected_oids, minimized_oids
end
def test_rugged_lib_constants

0 comments on commit 704c000

Please sign in to comment.