Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 02:50:28 +01:00
removed context block
Dieser Commit ist enthalten in:
Ursprung
c5ad11c0a4
Commit
47019664b1
1 geänderte Dateien mit 8 neuen und 11 gelöschten Zeilen
|
@ -3,20 +3,17 @@
|
||||||
require_relative '../../plugin_helper'
|
require_relative '../../plugin_helper'
|
||||||
|
|
||||||
describe CustomWizard::RealtimeValidation do
|
describe CustomWizard::RealtimeValidation do
|
||||||
context 'classes for every validation type exist' do
|
validation_names = CustomWizard::RealtimeValidation.types.keys
|
||||||
validation_names = CustomWizard::RealtimeValidation.types.keys
|
|
||||||
|
|
||||||
validation_names.each do |name|
|
validation_names.each do |name|
|
||||||
klass_str = "CustomWizard::RealtimeValidation::#{name.to_s.camelize}"
|
klass_str = "CustomWizard::RealtimeValidation::#{name.to_s.camelize}"
|
||||||
|
|
||||||
it "ensure class for validation: #{name} exists" do
|
it "ensure class for validation: #{name} exists" do
|
||||||
expect(klass_str.safe_constantize).not_to be_nil
|
expect(klass_str.safe_constantize).not_to be_nil
|
||||||
end
|
|
||||||
|
|
||||||
it "#{klass_str} has a perform() method" do
|
|
||||||
expect(klass_str.safe_constantize.instance_methods).to include(:perform)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "#{klass_str} has a perform() method" do
|
||||||
|
expect(klass_str.safe_constantize.instance_methods).to include(:perform)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Laden …
In neuem Issue referenzieren