Sha256: a7f3b0e3f8b1db6747384c6865812956b4a221b268f2043498fce2f9fd3bdbb6
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
require 'spec_helper' describe Ripple::Conversion do require 'support/models/box' before :each do @box = Box.new { |a| a.key = 'some-key' } @box.stub!(:new?).and_return(false) end it "should return the key as an array for to_key" do @box.to_key.should == ['some-key'] end it "should be able to be converted to a param" do @box.to_param.should == 'some-key' end it "should be able to be converted to a model" do @box.to_model.should == @box end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
seomoz-ripple-1.0.0.pre | spec/ripple/conversion_spec.rb |