Skip to content

Commit

Permalink
And another one!
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNaessens committed Dec 1, 2015
1 parent aad98e7 commit 23ea9d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/controllers/orders_controller_test.rb
Expand Up @@ -47,8 +47,9 @@ def setup
end

test 'resend sends order email when !is_paid' do
order = create(:unpaid_order)
assert_difference 'ActionMailer::Base.deliveries.size', +1 do
xhr :get, :resend, event_id: events(:codenight), id: orders(:three).id
xhr :get, :resend, event_id: order.event, id: order
end

email = ActionMailer::Base.deliveries.last
Expand Down

0 comments on commit 23ea9d2

Please sign in to comment.