Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

Commit

Permalink
frontend: Rails 3.x: Fix test to work
Browse files Browse the repository at this point in the history
  • Loading branch information
YOSHIDA Hiroki committed Sep 28, 2014
1 parent 70b1489 commit 17dcc4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/spec/controllers/comable/orders_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
before { add_to_cart }
before { request }

let(:default_order_attributes) { FactoryGirl.attributes_for(:order, customer: nil) }
let(:customer) { Comable::Customer.new(cookies) }

describe "GET 'new'" do
Expand Down Expand Up @@ -203,6 +204,7 @@

describe 'order mailer' do
let!(:store) { FactoryGirl.create(:store, :email_activate) }
let(:default_order_attributes) { FactoryGirl.attributes_for(:order, customer: nil) }
let(:customer) { Comable::Customer.new(cookies) }
let(:order) { customer.incomplete_order }
let(:request) { post :create }
Expand Down

0 comments on commit 17dcc4d

Please sign in to comment.