Clean up tests
Dieser Commit ist enthalten in:
Ursprung
d453d97df3
Commit
be204c1cb6
2 geänderte Dateien mit 7 neuen und 9 gelöschten Zeilen
|
@ -15,10 +15,6 @@ describe CustomWizard::Action do
|
||||||
@template = CustomWizard::Template.find('super_mega_fun_wizard')
|
@template = CustomWizard::Template.find('super_mega_fun_wizard')
|
||||||
end
|
end
|
||||||
|
|
||||||
context "creating a topic" do
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
context 'creating a topic' do
|
context 'creating a topic' do
|
||||||
it "works" do
|
it "works" do
|
||||||
wizard = CustomWizard::Builder.new(@template[:id], user).build
|
wizard = CustomWizard::Builder.new(@template[:id], user).build
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
if ENV['SIMPLECOV']
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
|
|
||||||
SimpleCov.start do
|
SimpleCov.start do
|
||||||
|
@ -7,5 +8,6 @@ SimpleCov.start do
|
||||||
track_files "plugins/discourse-custom-wizard/**/*.rb"
|
track_files "plugins/discourse-custom-wizard/**/*.rb"
|
||||||
add_filter { |src| src.filename =~ /(\/spec\/|\/db\/|plugin\.rb|api)/ }
|
add_filter { |src| src.filename =~ /(\/spec\/|\/db\/|plugin\.rb|api)/ }
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
Laden …
In neuem Issue referenzieren