Sha256: d23cf7d4a9c61c8c5626106c2e8e666799c097c7780187dbb00e89cd9f58521c
Contents?: true
Size: 416 Bytes
Versions: 6
Compression:
Stored size: 416 Bytes
Contents
require 'spec_helper' module Spree describe Spree::Order, type: :model do context "validations" do # Regression test for #2214 it "does not return two error messages when email is blank" do order = Spree::Order.new allow(order).to receive_messages(require_email: true) order.valid? expect(order.errors[:email]).to eq(["can't be blank"]) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems