Sha256: 4f10274e2566d0331c6b3bb3142197ed999dc8428a19c5a6297190e71b0195cf
Contents?: true
Size: 682 Bytes
Versions: 3
Compression:
Stored size: 682 Bytes
Contents
require "spec_helper" describe Mongoid::Errors::InvalidScope do describe "#message" do let(:error) do described_class.new(Band, {}) end it "contains the problem in the message" do error.message.should include( "Defining a scope of value {} on Band is not allowed." ) end it "contains the summary in the message" do error.message.should include( "Scopes in Mongoid must be either criteria objects or procs that wrap" ) end it "contains the resolution in the message" do error.message.should include( "Change the scope to be a criteria or proc wrapped critera." ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-3.1.7 | spec/mongoid/errors/invalid_scope_spec.rb |
mongoid-3.1.6 | spec/mongoid/errors/invalid_scope_spec.rb |
mongoid-3.1.5 | spec/mongoid/errors/invalid_scope_spec.rb |