diff --git a/plugins/statistics/test/unit/statistics_block_test.rb b/plugins/statistics/test/unit/statistics_block_test.rb index d7d5fee..d4fd26f 100644 --- a/plugins/statistics/test/unit/statistics_block_test.rb +++ b/plugins/statistics/test/unit/statistics_block_test.rb @@ -1,4 +1,5 @@ require_relative '../test_helper' + class StatisticsBlockTest < ActiveSupport::TestCase ['user_counter', 'tag_counter', 'comment_counter'].map do |counter| @@ -140,6 +141,8 @@ class StatisticsBlockTest < ActiveSupport::TestCase end should 'return the amount of visible environment products' do + return unless defined? ProductsPlugin + b = StatisticsBlock.new e = fast_create(Environment) @@ -160,6 +163,8 @@ class StatisticsBlockTest < ActiveSupport::TestCase end should 'return the amount of visible enterprise products' do + return unless defined? ProductsPlugin + b = StatisticsBlock.new e = fast_create(Enterprise) -- libgit2 0.21.2