Sha256: fef9f0c1a12b41fd481f1999c5bfff8bd2aa218c70ae2edf7fbfb7fafab294a1
Contents?: true
Size: 624 Bytes
Versions: 3
Compression:
Stored size: 624 Bytes
Contents
require 'spec_helper' describe Ripple::Document::Key do # require 'support/models/box' before do @box = Box.new end it "should define key getter and setter" do @box.should respond_to(:key) @box.should respond_to(:key=) end it "should stringify the assigned key" do @box.key = 2 @box.key.should == "2" end it "should use a property as the key" do class ShapedBox < Box key_on :shape end @box = ShapedBox.new @box.key = "square" @box.key.should == "square" @box.shape.should == "square" @box.shape = "oblong" @box.key.should == "oblong" end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
wyngle-ripple-0.1.0 | spec/ripple/key_spec.rb |
ripple-1.0.0.beta2 | spec/ripple/key_spec.rb |
ripple-1.0.0.beta | spec/ripple/key_spec.rb |