Sha256: b7cf77c5ac5a2248519e301450d39a769ad3438c9c3974d6834a074a03db6613
Contents?: true
Size: 459 Bytes
Versions: 7
Compression:
Stored size: 459 Bytes
Contents
require 'spec_helper' module Spree describe Spree::Order, :type => :model do context "validations" do # Regression test for https://github.com/spree/spree/issues/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
7 entries across 7 versions & 1 rubygems