Commit e8dcaa70559e1f34b87a83fb62d10dc04c40e0f1
1 parent
8bd4d8d4
Exists in
master
and in
1 other branch
Fix points tests
Showing
2 changed files
with
2 additions
and
0 deletions
Show diff stats
test/functional/application_controller_test.rb
@@ -7,6 +7,7 @@ class ApplicationControllerTest < ActionController::TestCase | @@ -7,6 +7,7 @@ class ApplicationControllerTest < ActionController::TestCase | ||
7 | 7 | ||
8 | def setup | 8 | def setup |
9 | @environment = Environment.default | 9 | @environment = Environment.default |
10 | + create_merit_categorization | ||
10 | @environment.enable_plugin(GamificationPlugin) | 11 | @environment.enable_plugin(GamificationPlugin) |
11 | @controller = TestController.new | 12 | @controller = TestController.new |
12 | @controller.stubs(:environment).returns(@environment) | 13 | @controller.stubs(:environment).returns(@environment) |
test/functional/gamification_plugin_admin_controller_test.rb
@@ -4,6 +4,7 @@ class GamificationPluginAdminControllerTest < ActionController::TestCase | @@ -4,6 +4,7 @@ class GamificationPluginAdminControllerTest < ActionController::TestCase | ||
4 | 4 | ||
5 | def setup | 5 | def setup |
6 | @environment = Environment.default | 6 | @environment = Environment.default |
7 | + create_merit_categorization | ||
7 | @person = create_user_with_permission('profile', 'edit_environment_features', Environment.default) | 8 | @person = create_user_with_permission('profile', 'edit_environment_features', Environment.default) |
8 | login_as(@person.identifier) | 9 | login_as(@person.identifier) |
9 | end | 10 | end |