1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Moved static pages actions to tournament where it made sense

This commit is contained in:
2015-11-05 02:38:39 +00:00
parent f86a577c8b
commit 4fae1c2896
21 changed files with 240 additions and 324 deletions

View File

@@ -26,28 +26,5 @@ class StaticPagesControllerTest < ActionController::TestCase
end
test "logged in tournament owner can access weigh_ins" do
sign_in_owner
get :weigh_in, tournament: 1
success
end
test "logged in non tournament owner cannot access weigh_ins" do
sign_in_non_owner
get :weigh_in, tournament: 1
redirect
end
test "logged in tournament owner can create custom weights" do
sign_in_owner
get :createCustomWeights, tournament: 1, customValue: 'hs'
assert_redirected_to '/tournaments/1'
end
test "logged in non tournament owner cannot create custom weights" do
sign_in_non_owner
get :createCustomWeights, tournament: 1, customValue: 'hs'
redirect
end
end