Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 02:50:28 +01:00
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,11 +1,13 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'simplecov'
|
if ENV['SIMPLECOV']
|
||||||
|
require 'simplecov'
|
||||||
|
|
||||||
SimpleCov.start do
|
SimpleCov.start do
|
||||||
root "plugins/discourse-custom-wizard"
|
root "plugins/discourse-custom-wizard"
|
||||||
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