Sha256: bb93b4c01497d15dcc70adc5d60975f7526695b158f98b4dd861891ef539fbd1

Contents?: true

Size: 413 Bytes

Versions: 94

Compression:

Stored size: 413 Bytes

Contents

require File.join(File.dirname(__FILE__), "..", "test_helper")
require 'mocha/inspect'

class HashInspectTest < Test::Unit::TestCase
  
  def test_should_keep_spacing_between_key_value
    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
  end
  
end

Version data entries

94 entries across 94 versions & 11 rubygems

Version Path
floehopper-mocha-0.9.3.20081220175348 test/unit/hash_inspect_test.rb
floehopper-mocha-0.9.3.20081230175553 test/unit/hash_inspect_test.rb
floehopper-mocha-0.9.4.20090128164727 test/unit/hash_inspect_test.rb
floehopper-mocha-0.9.5.20090201123802 test/unit/hash_inspect_test.rb
floehopper-mocha-0.9.6.20090629164857 test/unit/hash_inspect_test.rb
floehopper-mocha-0.9.6.20090629165308 test/unit/hash_inspect_test.rb
floehopper-mocha-0.9.6.20090701111305 test/unit/hash_inspect_test.rb
floehopper-mocha-0.9.7.20090701124354 test/unit/hash_inspect_test.rb
gsterndale-warrant-0.2.0 test/rails_root/vendor/gems/mocha-0.9.4/test/unit/hash_inspect_test.rb
gsterndale-warrant-0.3.0 test/rails_root/vendor/gems/mocha-0.9.4/test/unit/hash_inspect_test.rb
hashrocket-clearance-0.4.0 test/rails_root/vendor/gems/mocha-0.9.1/test/unit/hash_inspect_test.rb
hashrocket-clearance-0.4.1 test/rails_root/vendor/gems/mocha-0.9.1/test/unit/hash_inspect_test.rb
hashrocket-clearance-0.4.2 test/rails_root/vendor/gems/mocha-0.9.1/test/unit/hash_inspect_test.rb
hashrocket-clearance-0.4.3 test/rails_root/vendor/gems/mocha-0.9.1/test/unit/hash_inspect_test.rb
jferris-mocha-0.9.5.0.1240002286 test/unit/hash_inspect_test.rb
jferris-mocha-0.9.5.0.1240351621 test/unit/hash_inspect_test.rb
jferris-mocha-0.9.5.0.1241126838 test/unit/hash_inspect_test.rb
jferris-mocha-0.9.7.0.1247796736 test/unit/hash_inspect_test.rb
jferris-mocha-0.9.7.20090701124354 test/unit/hash_inspect_test.rb
jferris-mocha-0.9.7.20090911190113 test/unit/hash_inspect_test.rb