Skip to content

Commit

Permalink
Update routes_test.rb (#799)
Browse files Browse the repository at this point in the history
Added routes test for sets/embed2/:id
  • Loading branch information
rhonall committed Dec 15, 2021
1 parent c1b7618 commit 8bbbe25
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 @@ -16,6 +16,10 @@ class RoutesTest < ActionDispatch::IntegrationTest
test "test get request for sets create" do
assert_routing({ path: '/sets/create/:id', method: 'post' }, {controller: 'sets', action: 'create', id: ':id' })
end

test "test get request for sets embed2" do
assert_routing({ path: '/sets/embed2/:id', method: 'get' }, {controller: 'sets', action: 'embed2', id: ':id' })
end

test "test spectrums choose route" do
assert_routing({ path: '/spectrums/choose', method: :post }, { controller: 'spectrums', action: 'choose' })
Expand Down

0 comments on commit 8bbbe25

Please sign in to comment.