Skip to content

Commit

Permalink
Merge pull request #68 from gingray/specify_route_engine_in_spec
Browse files Browse the repository at this point in the history
specify route engine in spec
  • Loading branch information
rmm5t committed Mar 29, 2016
2 parents 3432c3f + 0716ddf commit 8e3be89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/controllers/webhook_controller_spec.rb
Expand Up @@ -8,9 +8,11 @@ def stub_event(identifier, status = 200)
end

def webhook(params)
post :event, params.merge(use_route: :stripe_event)
post :event, params
end

routes { StripeEvent::Engine.routes }

it "succeeds with valid event data" do
count = 0
StripeEvent.subscribe('charge.succeeded') { |evt| count += 1 }
Expand Down

0 comments on commit 8e3be89

Please sign in to comment.