1
- require ' test_helper'
1
+ require " test_helper"
2
2
3
3
class Manage ::ConfigsControllerTest < ActionController ::TestCase
4
4
context "while not authenticated" do
@@ -15,9 +15,9 @@ class Manage::ConfigsControllerTest < ActionController::TestCase
15
15
end
16
16
17
17
should "not update config" do
18
- HackathonConfig [ ' registration_is_open' ] = false
18
+ HackathonConfig [ " registration_is_open" ] = false
19
19
patch :update , params : { id : "registration_is_open" , hackathon_config : { registration_is_open : "true" } }
20
- assert_equal false , HackathonConfig [ ' registration_is_open' ]
20
+ assert_equal false , HackathonConfig [ " registration_is_open" ]
21
21
assert_redirected_to new_user_session_path
22
22
end
23
23
end
@@ -42,9 +42,9 @@ class Manage::ConfigsControllerTest < ActionController::TestCase
42
42
end
43
43
44
44
should "not update config" do
45
- HackathonConfig [ ' registration_is_open' ] = false
45
+ HackathonConfig [ " registration_is_open" ] = false
46
46
patch :update , params : { id : "registration_is_open" , hackathon_config : { registration_is_open : "true" } }
47
- assert_equal false , HackathonConfig [ ' registration_is_open' ]
47
+ assert_equal false , HackathonConfig [ " registration_is_open" ]
48
48
assert_redirected_to root_path
49
49
end
50
50
end
@@ -67,9 +67,9 @@ class Manage::ConfigsControllerTest < ActionController::TestCase
67
67
end
68
68
69
69
should "not update config" do
70
- HackathonConfig [ ' registration_is_open' ] = false
70
+ HackathonConfig [ " registration_is_open" ] = false
71
71
patch :update , params : { id : "registration_is_open" , hackathon_config : { registration_is_open : "true" } }
72
- assert_equal false , HackathonConfig [ ' registration_is_open' ]
72
+ assert_equal false , HackathonConfig [ " registration_is_open" ]
73
73
end
74
74
end
75
75
@@ -91,9 +91,9 @@ class Manage::ConfigsControllerTest < ActionController::TestCase
91
91
end
92
92
93
93
should "update config" do
94
- HackathonConfig [ ' registration_is_open' ] = false
94
+ HackathonConfig [ " registration_is_open" ] = false
95
95
patch :update , params : { id : "registration_is_open" , hackathon_config : { registration_is_open : "true" } }
96
- assert_equal true , HackathonConfig [ ' registration_is_open' ]
96
+ assert_equal true , HackathonConfig [ " registration_is_open" ]
97
97
assert_redirected_to manage_configs_path
98
98
end
99
99
end
0 commit comments