From 47019664b1e11ddf65316fe55f3e96fecf6746c9 Mon Sep 17 00:00:00 2001 From: Faizaan Gagan Date: Tue, 16 Feb 2021 20:06:05 +0530 Subject: [PATCH] removed context block --- .../custom_wizard/realtime_validation_spec.rb | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/spec/components/custom_wizard/realtime_validation_spec.rb b/spec/components/custom_wizard/realtime_validation_spec.rb index d3a92452..819ac2ae 100644 --- a/spec/components/custom_wizard/realtime_validation_spec.rb +++ b/spec/components/custom_wizard/realtime_validation_spec.rb @@ -3,20 +3,17 @@ require_relative '../../plugin_helper' 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| - klass_str = "CustomWizard::RealtimeValidation::#{name.to_s.camelize}" + validation_names.each do |name| + klass_str = "CustomWizard::RealtimeValidation::#{name.to_s.camelize}" - it "ensure class for validation: #{name} exists" do - 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 + it "ensure class for validation: #{name} exists" do + 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