Sha256: fcb4731fd7c3e86f25cfbcf577e8f9a56fc561dcbdf7a0fc4c10b9303f336a5a
Contents?: true
Size: 745 Bytes
Versions: 27
Compression:
Stored size: 745 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 require "spec_helper" describe Mongoid::Errors::InvalidTime do describe "#message" do let(:error) do described_class.new("this is not a date") end it "contains the problem in the message" do expect(error.message).to include( "'this is not a date' is not a valid Time." ) end it "contains the summary in the message" do expect(error.message).to include( "Mongoid tries to serialize the values for Date, DateTime, and Time" ) end it "contains the resolution in the message" do expect(error.message).to include( "Make sure to pass parsable values to the field setter for Date" ) end end end
Version data entries
27 entries across 27 versions & 2 rubygems