Skip to content

Commit e4c087a

Browse files
committed
Add redirect test for 6 quizzes on the book
1 parent bd38640 commit e4c087a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/integration/so_tech_sha_test.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
require 'test_helper'
2+
3+
class SoTechShaTest < ActionDispatch::IntegrationTest
4+
def setup
5+
# Quizzes on the book
6+
@quizzes = (1..6).to_a
7+
end
8+
9+
test "Quizzes should be redirected" do
10+
@quizzes.each do |num|
11+
get "/sotechsha/#{num}"
12+
assert_redirected_to "/#{num}"
13+
end
14+
end
15+
end

0 commit comments

Comments
 (0)