Sha256: 8159e5f622e55bc611905fc5dcef0b8ff84dba4ed14cf189360b61a396a90e8d
Contents?: true
Size: 759 Bytes
Versions: 29
Compression:
Stored size: 759 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe Mongoid::Errors::InvalidOptions do describe "#message" do let(:error) do described_class.new(:name, :invalid, [ :valid ]) end it "contains the problem in the message" do expect(error.message).to include( "Invalid option :invalid provided to association :name." ) end it "contains the summary in the message" do expect(error.message).to include( "Mongoid checks the options that are passed to the association macros" ) end it "contains the resolution in the message" do expect(error.message).to include( "Valid options are: valid, make sure these are the ones you are using." ) end end end
Version data entries
29 entries across 29 versions & 1 rubygems