Skip to content

Commit

Permalink
Add test case for OrdersController
Browse files Browse the repository at this point in the history
  • Loading branch information
YOSHIDA Hiroki committed Nov 18, 2015
1 parent 770ced4 commit c838c98
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
end
end

describe 'GET new' do
it 'redirects to a new draft order' do
get :new
expect(response).to redirect_to(comable.new_admin_draft_order_path)
end
end

describe 'PUT update' do
let!(:order) { create(:order, :completed) }

Expand Down

0 comments on commit c838c98

Please sign in to comment.