Sha256: 9750bf4b6f1f0724b915dd293f676a20130b5cc21fdc596b5e49f23a86343730

Contents?: true

Size: 269 Bytes

Versions: 8

Compression:

Stored size: 269 Bytes

Contents

require 'test_helper'

describe String do
  describe "when given a string" do
    it "must response to ducktype" do
      "100".ducktype.must_equal 100
      "100.0".ducktype.must_equal 100.0
      "i_am_a_string".ducktype.must_equal "i_am_a_string"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
omf_common-6.0.2.pre.2 test/omf_common/core_ext/string_spec.rb
omf_common-6.0.2.pre.1 test/omf_common/core_ext/string_spec.rb
omf_common-6.0.0 test/omf_common/core_ext/string_spec.rb
omf_common-6.0.0.pre.11 test/omf_common/core_ext/string_spec.rb
omf_common-6.0.0.pre.10 test/omf_common/core_ext/string_spec.rb
omf_common-6.0.0.pre.8 test/omf_common/core_ext/string_spec.rb
omf_common-6.0.0.pre.7 test/omf_common/core_ext/string_spec.rb
omf_common-6.0.0.pre.6 test/omf_common/core_ext/string_spec.rb