From c6cf87bf821403d4dbed2469f9e20820fbf2a9a7 Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Tue, 28 Aug 2012 17:36:19 +0100 Subject: [PATCH] Find out why order isn't valid --- .travis.yml | 1 + core/spec/models/order/callbacks_spec.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index b77e5121e51..2588a8532f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,6 +27,7 @@ branches: - 1-1-stable - 1-2-stable - master + - debugging-order-callbacks rvm: - 1.8.7 - 1.9.3 diff --git a/core/spec/models/order/callbacks_spec.rb b/core/spec/models/order/callbacks_spec.rb index 2dd39c63865..4f19b9d9b07 100644 --- a/core/spec/models/order/callbacks_spec.rb +++ b/core/spec/models/order/callbacks_spec.rb @@ -9,6 +9,8 @@ it "o'brien@gmail.com is a valid email address" do order.state = 'address' order.email = "o'brien@gmail.com" + p order.valid? + p order.errors order.should be_valid end end