Commit 100608aa7161a5beaf1124a91f77d4423e166ed1
1 parent
4690053a
Exists in
ratings_minor_fixes
and in
3 other branches
fix tests on CI environment
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
plugins/statistics/test/unit/statistics_block_test.rb
@@ -145,6 +145,7 @@ class StatisticsBlockTest < ActiveSupport::TestCase | @@ -145,6 +145,7 @@ class StatisticsBlockTest < ActiveSupport::TestCase | ||
145 | 145 | ||
146 | b = StatisticsBlock.new | 146 | b = StatisticsBlock.new |
147 | e = fast_create(Environment) | 147 | e = fast_create(Environment) |
148 | + e.enable_plugin('ProductsPlugin') | ||
148 | 149 | ||
149 | e1 = fast_create(Enterprise, :visible => true, :enabled => true, :environment_id => e.id) | 150 | e1 = fast_create(Enterprise, :visible => true, :enabled => true, :environment_id => e.id) |
150 | e2 = fast_create(Enterprise, :visible => true, :enabled => false, :environment_id => e.id) | 151 | e2 = fast_create(Enterprise, :visible => true, :enabled => false, :environment_id => e.id) |
@@ -168,6 +169,8 @@ class StatisticsBlockTest < ActiveSupport::TestCase | @@ -168,6 +169,8 @@ class StatisticsBlockTest < ActiveSupport::TestCase | ||
168 | b = StatisticsBlock.new | 169 | b = StatisticsBlock.new |
169 | 170 | ||
170 | e = fast_create(Enterprise) | 171 | e = fast_create(Enterprise) |
172 | + environment = e.environment | ||
173 | + environment.enable_plugin('ProductsPlugin') | ||
171 | 174 | ||
172 | fast_create(Product, :profile_id => e.id) | 175 | fast_create(Product, :profile_id => e.id) |
173 | fast_create(Product, :profile_id => e.id) | 176 | fast_create(Product, :profile_id => e.id) |