Skip to content

Commit

Permalink
added the spectrum update id to the file (#796)
Browse files Browse the repository at this point in the history
* added the spectrum update id to the file 

I added the required lines to the code.

* I intended the line 

I intended the line "assert_routing({ path: '/spectrums/:id/update', method: 'post' }, {controller: 'spectrums', action: 'update', id: ':id' })"
  • Loading branch information
Najmieh Sadat Safarabadi authored Nov 30, 2021
1 parent e46f25f commit c1b7618
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/routes_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class RoutesTest < ActionDispatch::IntegrationTest
assert_routing({ path: '/spectrums/latest/:id', method: 'get' }, {controller: 'spectrums', action: 'latest', id: ':id' })
end

test "test post request for spectrums update id" do
assert_routing({ path: '/spectrums/:id/update', method: 'post' }, {controller: 'spectrums', action: 'update', id: ':id' })
end

test "test get request for spectrums embed" do
assert_routing({ path: '/spectrums/embed/:id', method: 'get' }, {controller: 'spectrums', action: 'embed', id: ':id' })
end
Expand Down

0 comments on commit c1b7618

Please sign in to comment.