Skip to content

Commit 4761b9c

Browse files
committed
本に関する記事のパーマリンクを変更したため、影響するcontroller/testを修正
1 parent e98020c commit 4761b9c

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class SoTechShaController < ApplicationController
22
def quiz
33
quiz = params[:quiz]
4-
redirect_to "/#{quiz}"
4+
redirect_to "/sotechsha-#{quiz}"
55
end
66
end

db/test

0 Bytes
Binary file not shown.

test/integration/so_tech_sha_test.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ def setup
99
test "Quizzes should be redirected" do
1010
@quizzes.each do |num|
1111
get "/sotechsha/#{num}"
12-
assert_redirected_to "/#{num}"
12+
assert_redirected_to "/sotechsha-#{num}"
1313
end
1414
end
15+
16+
test "Gazoulink should be redirected" do
17+
get "/sotechsha/gazou"
18+
assert_redirected_to "/sotechsha-gazou"
19+
end
1520
end

0 commit comments

Comments
 (0)