Commit 0a27ae31aa98f058335b9dc9810df6376555c8b7
Exists in
staging
and in
1 other branch
Merge branch 'master' into staging
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) | ... | ... |