diff --git a/lib/cuke_linter/linters/feature_without_scenarios_linter.rb b/lib/cuke_linter/linters/feature_without_scenarios_linter.rb index ba4798f..5cebf8e 100644 --- a/lib/cuke_linter/linters/feature_without_scenarios_linter.rb +++ b/lib/cuke_linter/linters/feature_without_scenarios_linter.rb @@ -4,7 +4,7 @@ module CukeLinter class FeatureWithoutScenariosLinter < Linter # The rule used to determine if a model has a problem - def rule(model) + def rule(model) # rubocop:disable Metrics/CyclomaticComplexity # It's good enough return false unless model.is_a?(CukeModeler::Feature) feature_tests = model.tests && model.tests.any? diff --git a/testing/rspec/spec/unit/linters/feature_without_scenarios_linter_unit_spec.rb b/testing/rspec/spec/unit/linters/feature_without_scenarios_linter_unit_spec.rb index b7bddb2..9e22ccc 100644 --- a/testing/rspec/spec/unit/linters/feature_without_scenarios_linter_unit_spec.rb +++ b/testing/rspec/spec/unit/linters/feature_without_scenarios_linter_unit_spec.rb @@ -102,7 +102,7 @@ let(:test_model) do gherkin = 'Feature: Rule:' - model = generate_feature_model(source_text: gherkin, parent_file_path: model_file_path) + model = generate_feature_model(source_text: gherkin, parent_file_path: model_file_path) model.rules.first.tests = [] model @@ -123,7 +123,7 @@ let(:test_model) do gherkin = 'Feature: Rule:' - model = generate_feature_model(source_text: gherkin, parent_file_path: model_file_path) + model = generate_feature_model(source_text: gherkin, parent_file_path: model_file_path) model.rules.first.tests = nil model