Sha256: 09e6719338e964c227ca0b612db1d11110dc5b343b2f9e5882e411b6918e9203
Contents?: true
Size: 566 Bytes
Versions: 6
Compression:
Stored size: 566 Bytes
Contents
require File.join(File.dirname(__FILE__), "/../spec_helper") describe OpenStruct do before do @o = OpenStruct.new(:this => :that) end it "should make the table available." do @o.table.should ==({:this => :that}) end it "should make the keys to the table available" do @o.keys.should eql([:this]) end it "should make the values available" do @o.values.should eql([:that]) end it "should be able to check if a key is included in the keys" do @o.should be_include(:this) @o.should_not be_include(:that) end end
Version data entries
6 entries across 6 versions & 1 rubygems