Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe 'articles' do
- it 'should route to articles index' do
- expect(get '/articles').to route_to('articles#index')
- end
- it 'should route to articles show' do
- expect(get '/articles/1').to route_to('articles#show', id: '1')
- end
- it 'should route to articles create' do
- expect(post '/articles').to route_to('articles#create')
- end
- it 'should route to articles update' do
- expect(put '/articles/1').to route_to('articles#update', id: '1')
- expect(patch '/articles/1').to route_to('articles#update', id: '1')
- end
- it 'should route to articles destroy' do
- expect(delete '/articles/1').to route_to('articles#destroy', id: '1')
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement