diff --git a/spec/components/custom_wizard/action_spec.rb b/spec/components/custom_wizard/action_spec.rb index 85b6b18a..1df5ca53 100644 --- a/spec/components/custom_wizard/action_spec.rb +++ b/spec/components/custom_wizard/action_spec.rb @@ -15,10 +15,6 @@ describe CustomWizard::Action do @template = CustomWizard::Template.find('super_mega_fun_wizard') end - context "creating a topic" do - - end - context 'creating a topic' do it "works" do wizard = CustomWizard::Builder.new(@template[:id], user).build diff --git a/spec/plugin_helper.rb b/spec/plugin_helper.rb index b54eb60d..c31ec990 100644 --- a/spec/plugin_helper.rb +++ b/spec/plugin_helper.rb @@ -1,11 +1,13 @@ # frozen_string_literal: true -require 'simplecov' +if ENV['SIMPLECOV'] + require 'simplecov' -SimpleCov.start do - root "plugins/discourse-custom-wizard" - track_files "plugins/discourse-custom-wizard/**/*.rb" - add_filter { |src| src.filename =~ /(\/spec\/|\/db\/|plugin\.rb|api)/ } + SimpleCov.start do + root "plugins/discourse-custom-wizard" + track_files "plugins/discourse-custom-wizard/**/*.rb" + add_filter { |src| src.filename =~ /(\/spec\/|\/db\/|plugin\.rb|api)/ } + end end require 'rails_helper' \ No newline at end of file