test/unit/hash_inspect_test.rb in mocha-1.6.0 vs test/unit/hash_inspect_test.rb in mocha-1.7.0
- old
+ new
@@ -1,16 +1,14 @@
require File.expand_path('../../test_helper', __FILE__)
require 'mocha/inspect'
class HashInspectTest < Mocha::TestCase
-
def test_should_keep_spacing_between_key_value
- hash = {:a => true}
+ hash = { :a => true }
assert_equal '{:a => true}', hash.mocha_inspect
end
def test_should_use_mocha_inspect_on_each_item
- hash = {:a => 'mocha'}
- assert_equal %{{:a => "mocha"}}, hash.mocha_inspect
+ hash = { :a => 'mocha' }
+ assert_equal %({:a => "mocha"}), hash.mocha_inspect
end
-
end