Sha256: d00397e2c7f03f9b14e3d19c520b9f74fe04b8d27bfeb05fe3d21b32cc1b724a
Contents?: true
Size: 755 Bytes
Versions: 27
Compression:
Stored size: 755 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 require "spec_helper" describe Mongoid::Errors::Callback do describe "#message" do let(:error) do described_class.new(Post, :create!) end it "contains the problem in the message" do expect(error.message).to include( "Calling create! on Post resulted in a false return from a callback." ) end it "contains the summary in the message" do expect(error.message).to include( "If a before callback returns false when using Document.create!" ) end it "contains the resolution in the message" do expect(error.message).to include( "Double check all before callbacks to make sure they are not" ) end end end
Version data entries
27 entries across 27 versions & 2 rubygems