Skip to content

Commit

Permalink
Add route for DELETE method and keeper edit path
Browse files Browse the repository at this point in the history
This is a workaround needed to make the test for removing keepers (in league_manager_spec)
pass. There's currently a bug in PhantomJS (ariya/phantomjs#11214)
that causes PhantomJS to make a request for 303 redirect with the original request method,
in this case DELETE instead of a GET.
  • Loading branch information
Josh Prince committed Jul 14, 2015
1 parent c12c7a0 commit f5deb44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
resource :draft, only: :show
resource :draft_results, only: [:create, :show]
resource :keepers, only: [:create, :destroy, :edit]
# workaround for PhantomJS bug https://github.com/ariya/phantomjs/issues/11214
# league_manager_spec/can manage keepers after picks are generated will fail without this route
delete '/keepers/edit', to: 'keepers#edit'
resources :teams
get 'draft_order',
to: 'draft_order#edit'
Expand Down

0 comments on commit f5deb44

Please sign in to comment.