Sha256: b8a4c80f210cd4f3ee0de3670a3ee6252ec4ab231058f90e4080d84491a98768
Contents?: true
Size: 699 Bytes
Versions: 3
Compression:
Stored size: 699 Bytes
Contents
require "spec_helper" describe Mongoid::Errors::InvalidStorageOptions do describe "#message" do let(:error) do described_class.new(Band, :bad_option) end it "contains the problem in the message" do error.message.should include( "Invalid options passed to Band.store_in: bad_option." ) end it "contains the summary in the message" do error.message.should include( "The :store_in macro takes only a hash of parameters with the" ) end it "contains the resolution in the message" do error.message.should include( "Change the options passed to store_in to match the documented API" ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems