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 | 7 | |
| 8 | 8 | def setup |
| 9 | 9 | @environment = Environment.default |
| 10 | + create_merit_categorization | |
| 10 | 11 | @environment.enable_plugin(GamificationPlugin) |
| 11 | 12 | @controller = TestController.new |
| 12 | 13 | @controller.stubs(:environment).returns(@environment) | ... | ... |
test/functional/gamification_plugin_admin_controller_test.rb
| ... | ... | @@ -4,6 +4,7 @@ class GamificationPluginAdminControllerTest < ActionController::TestCase |
| 4 | 4 | |
| 5 | 5 | def setup |
| 6 | 6 | @environment = Environment.default |
| 7 | + create_merit_categorization | |
| 7 | 8 | @person = create_user_with_permission('profile', 'edit_environment_features', Environment.default) |
| 8 | 9 | login_as(@person.identifier) |
| 9 | 10 | end | ... | ... |