Skip to content
Permalink
Browse files
added spec for users#destroy route
  • Loading branch information
sashazykov committed Dec 11, 2020
1 parent 1701f4c commit 5f462e4
Showing 1 changed file with 8 additions and 0 deletions.
@@ -33,6 +33,14 @@
)
end

it 'routes DELETE /users/1 to Tips#destroy' do
expect({ delete: '/users/1' }).to route_to(
controller: 'users',
action: 'destroy',
id: '1'
)
end

describe 'pretty url routing' do
let(:user) { create(:user) }

0 comments on commit 5f462e4

Please sign in to comment.