Sha256: 83a4e879c80600de38fa145fa17d15bb41428f6ddf1f7a2035176a430748b4db

Contents?: true

Size: 338 Bytes

Versions: 2

Compression:

Stored size: 338 Bytes

Contents

require 'spec_helper'

describe Ripple::Conversion do
  # require 'support/models/box'
  subject { Box.new { |a| a.key = 'some-key' } }

  before :each do
    subject.stub!(:new?).and_return(false)
  end

  its(:to_key)  { should == ['some-key'] }
  its(:to_param){ should == 'some-key'   }
  its(:to_model){ should == subject      }
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
wyngle-ripple-0.1.0 spec/ripple/conversion_spec.rb
ripple-1.0.0.beta2 spec/ripple/conversion_spec.rb