Commit 781e93a427513c94cbaf97574a28fea397a3d16d

Authored by Leandro Santos
1 parent b6df7d11

fixing functional tets

test/functional/gamification_plugin_badges_controller_test.rb
1 -require 'test_helper' 1 +require_relative "../test_helper"
2 2
3 class GamificationPluginBadgesControllerTest < ActionController::TestCase 3 class GamificationPluginBadgesControllerTest < ActionController::TestCase
4 4
test/functional/gamification_plugin_points_controller_test.rb
1 -require 'test_helper' 1 +require_relative "../test_helper"
2 2
3 class GamificationPluginPointsControllerTest < ActionController::TestCase 3 class GamificationPluginPointsControllerTest < ActionController::TestCase
4 4
@@ -23,7 +23,6 @@ class GamificationPluginPointsControllerTest &lt; ActionController::TestCase @@ -23,7 +23,6 @@ class GamificationPluginPointsControllerTest &lt; ActionController::TestCase
23 end 23 end
24 24
25 should "should create gamification_plugin_point_categorizations for general rules" do 25 should "should create gamification_plugin_point_categorizations for general rules" do
26 - create_all_point_rules  
27 count = GamificationPlugin::PointsType.count 26 count = GamificationPlugin::PointsType.count
28 assert_difference('GamificationPlugin::PointsCategorization.count', count) do 27 assert_difference('GamificationPlugin::PointsCategorization.count', count) do
29 post :create, identifier: '' 28 post :create, identifier: ''