Skip to content

Commit

Permalink
Don't use send.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Nov 6, 2016
1 parent e489995 commit 40cc054
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/grape/api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -523,19 +523,19 @@ class DummyFormatClass
end
end

send('get', 'nested')
get 'nested'
expect(last_response.body).to eql 'root'

send('get', 'nested/something')
get 'nested/something'
expect(last_response.body).to eql 'something'

send('get', 'nested/missing')
get 'nested/missing'
expect(last_response.body).to eql 'catch-all'

send('post', 'nested')
post 'nested'
expect(last_response.body).to eql 'catch-all'

send('post', 'nested/something')
post 'nested/something'
expect(last_response.body).to eql 'catch-all'
end

Expand Down

1 comment on commit 40cc054

@namusyaka
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍 👍

Please sign in to comment.