Commit 100608aa7161a5beaf1124a91f77d4423e166ed1
1 parent
4690053a
Exists in
staging
and in
28 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 | 145 | |
146 | 146 | b = StatisticsBlock.new |
147 | 147 | e = fast_create(Environment) |
148 | + e.enable_plugin('ProductsPlugin') | |
148 | 149 | |
149 | 150 | e1 = fast_create(Enterprise, :visible => true, :enabled => true, :environment_id => e.id) |
150 | 151 | e2 = fast_create(Enterprise, :visible => true, :enabled => false, :environment_id => e.id) |
... | ... | @@ -168,6 +169,8 @@ class StatisticsBlockTest < ActiveSupport::TestCase |
168 | 169 | b = StatisticsBlock.new |
169 | 170 | |
170 | 171 | e = fast_create(Enterprise) |
172 | + environment = e.environment | |
173 | + environment.enable_plugin('ProductsPlugin') | |
171 | 174 | |
172 | 175 | fast_create(Product, :profile_id => e.id) |
173 | 176 | fast_create(Product, :profile_id => e.id) | ... | ... |