Sha256: 4547c9b16f3a643440729de91d66d38bf911a76bc0c8f2872337a6dc0227387a
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
# -*- coding: utf-8 -*- require "sixarm_ruby_to_id_test" require "sixarm_ruby_to_id/object" class Mock def object_id "123" end end describe Object do describe "#to_i_id" do it "returns #object_id.to_i" do x = Mock.new x.to_i_id.must_equal 123 end end describe "#to_i_ids" do it "returns #object_id.to_i list" do x = Mock.new x.to_i_ids.must_equal [123] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_to_id-1.1.0 | test/sixarm_ruby_to_id_test/object_test.rb |