Sha256: 23545d1eb13d3c59c30b924c267897910056cf29a8aa4650afd17387f45324e5

Contents?: true

Size: 631 Bytes

Versions: 51

Compression:

Stored size: 631 Bytes

Contents

# Copyright (c) 2012 National ICT Australia Limited (NICTA).
# This software may be used and distributed solely under the terms of the MIT license (License).
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
# By downloading or using this software you accept the terms and the liability disclaimer in the License.

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

51 entries across 51 versions & 1 rubygems

Version Path
omf_common-6.2.3 test/omf_common/core_ext/string_spec.rb
omf_common-6.2.2 test/omf_common/core_ext/string_spec.rb
omf_common-6.2.1 test/omf_common/core_ext/string_spec.rb
omf_common-6.2.0 test/omf_common/core_ext/string_spec.rb
omf_common-6.2.0.pre.2 test/omf_common/core_ext/string_spec.rb
omf_common-6.2.0.pre.1 test/omf_common/core_ext/string_spec.rb
omf_common-6.1.14.pre.2 test/omf_common/core_ext/string_spec.rb
omf_common-6.1.14.pre.1 test/omf_common/core_ext/string_spec.rb
omf_common-6.1.12 test/omf_common/core_ext/string_spec.rb
omf_common-6.1.11 test/omf_common/core_ext/string_spec.rb
omf_common-6.1.10 test/omf_common/core_ext/string_spec.rb
omf_common-6.1.9 test/omf_common/core_ext/string_spec.rb
omf_common-6.1.9.pre.4 test/omf_common/core_ext/string_spec.rb
omf_common-6.1.9.pre.3 test/omf_common/core_ext/string_spec.rb
omf_common-6.1.9.pre.2 test/omf_common/core_ext/string_spec.rb
omf_common-6.1.8 test/omf_common/core_ext/string_spec.rb
omf_common-6.1.7 test/omf_common/core_ext/string_spec.rb
omf_common-6.1.6 test/omf_common/core_ext/string_spec.rb
omf_common-6.1.6.pre.2 test/omf_common/core_ext/string_spec.rb
omf_common-6.1.6.pre.1 test/omf_common/core_ext/string_spec.rb