Skip to content

Commit

Permalink
Added route tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imajit committed Jul 12, 2021
1 parent 214c56e commit 200ef11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/integration/routes_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,12 @@ def setup
assert_routing({ path: '/comment/update/:id', method: 'get' }, {controller: 'comment', action: 'update', id: ':id' })
end

test "test switch on translation route" do
assert_routing({ path: 'switch_on_translation',method: 'get' }, {controller: 'home', action: 'switch_on_translation' })
end

test "test switch off translation route" do
assert_routing({ path: 'switch_off_translation',method: 'get' }, {controller: 'home', action: 'switch_off_translation' })
end

end

0 comments on commit 200ef11

Please sign in to comment.