cuke_linter 0.12.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +41 -1
  3. data/README.md +12 -8
  4. data/cuke_linter.gemspec +25 -21
  5. data/exe/cuke_linter +3 -1
  6. data/lib/cuke_linter.rb +119 -176
  7. data/lib/cuke_linter/configuration.rb +45 -0
  8. data/lib/cuke_linter/default_linters.rb +32 -0
  9. data/lib/cuke_linter/formatters/pretty_formatter.rb +63 -35
  10. data/lib/cuke_linter/gherkin.rb +10 -0
  11. data/lib/cuke_linter/linter_registration.rb +32 -0
  12. data/lib/cuke_linter/linters/background_does_more_than_setup_linter.rb +17 -1
  13. data/lib/cuke_linter/linters/element_with_common_tags_linter.rb +23 -14
  14. data/lib/cuke_linter/linters/element_with_duplicate_tags_linter.rb +18 -13
  15. data/lib/cuke_linter/linters/element_with_too_many_tags_linter.rb +17 -11
  16. data/lib/cuke_linter/linters/feature_with_too_many_different_tags_linter.rb +1 -3
  17. data/lib/cuke_linter/linters/feature_without_description_linter.rb +1 -1
  18. data/lib/cuke_linter/linters/linter.rb +17 -13
  19. data/lib/cuke_linter/linters/step_with_too_many_characters_linter.rb +2 -2
  20. data/lib/cuke_linter/linters/test_should_use_background_linter.rb +56 -4
  21. data/lib/cuke_linter/linters/test_with_action_step_as_final_step_linter.rb +12 -1
  22. data/lib/cuke_linter/linters/test_with_bad_name_linter.rb +4 -4
  23. data/lib/cuke_linter/linters/test_with_no_action_step_linter.rb +12 -1
  24. data/lib/cuke_linter/linters/test_with_no_verification_step_linter.rb +12 -1
  25. data/lib/cuke_linter/linters/test_with_setup_step_after_action_step_linter.rb +18 -2
  26. data/lib/cuke_linter/linters/test_with_setup_step_after_verification_step_linter.rb +18 -2
  27. data/lib/cuke_linter/linters/test_with_setup_step_as_final_step_linter.rb +12 -1
  28. data/lib/cuke_linter/version.rb +1 -1
  29. data/testing/cucumber/features/linters/background_does_more_than_setup.feature +34 -0
  30. data/testing/cucumber/features/linters/test_with_action_as_final_step.feature +25 -3
  31. data/testing/cucumber/features/linters/test_with_no_action_step.feature +27 -1
  32. data/testing/cucumber/features/linters/test_with_no_verification_step.feature +28 -1
  33. data/testing/cucumber/features/linters/test_with_setup_step_after_action_step.feature +28 -1
  34. data/testing/cucumber/features/linters/test_with_setup_step_after_verification_step.feature +28 -1
  35. data/testing/cucumber/features/linters/test_with_setup_step_as_final_step.feature +25 -3
  36. metadata +88 -106
  37. data/.gitignore +0 -19
  38. data/.simplecov +0 -8
  39. data/.travis.yml +0 -23
  40. data/CONTRIBUTING.md +0 -26
  41. data/Gemfile +0 -6
  42. data/Rakefile +0 -63
  43. data/appveyor.yml +0 -43
  44. data/bin/console +0 -14
  45. data/bin/setup +0 -8
  46. data/environments/common_env.rb +0 -12
  47. data/environments/cucumber_env.rb +0 -22
  48. data/environments/rspec_env.rb +0 -50
  49. data/testing/cucumber/step_definitions/action_steps.rb +0 -84
  50. data/testing/cucumber/step_definitions/setup_steps.rb +0 -230
  51. data/testing/cucumber/step_definitions/verification_steps.rb +0 -94
  52. data/testing/file_helper.rb +0 -41
  53. data/testing/formatter_factory.rb +0 -15
  54. data/testing/gemfiles/cuke_modeler1.gemfile +0 -8
  55. data/testing/gemfiles/cuke_modeler2.gemfile +0 -8
  56. data/testing/linter_factory.rb +0 -60
  57. data/testing/model_factory.rb +0 -109
  58. data/testing/rspec/spec/integration/cli_integration_spec.rb +0 -556
  59. data/testing/rspec/spec/integration/configuration_spec.rb +0 -811
  60. data/testing/rspec/spec/integration/cuke_linter_integration_spec.rb +0 -243
  61. data/testing/rspec/spec/integration/formatters/formatter_integration_specs.rb +0 -5
  62. data/testing/rspec/spec/integration/formatters/pretty_formatter_integration_spec.rb +0 -8
  63. data/testing/rspec/spec/integration/linters/background_does_more_than_setup_linter_integration_spec.rb +0 -8
  64. data/testing/rspec/spec/integration/linters/element_with_common_tags_linter_integration_spec.rb +0 -8
  65. data/testing/rspec/spec/integration/linters/element_with_duplicate_tags_linter_integration_spec.rb +0 -8
  66. data/testing/rspec/spec/integration/linters/element_with_too_many_tags_linter_integration_spec.rb +0 -8
  67. data/testing/rspec/spec/integration/linters/example_without_name_linter_integration_spec.rb +0 -8
  68. data/testing/rspec/spec/integration/linters/feature_file_with_invalid_name_integration_spec.rb +0 -8
  69. data/testing/rspec/spec/integration/linters/feature_file_with_mismatched_name_integration_spec.rb +0 -8
  70. data/testing/rspec/spec/integration/linters/feature_with_too_many_different_tags_linter_integration_spec.rb +0 -8
  71. data/testing/rspec/spec/integration/linters/feature_without_description_linter_integration_spec.rb +0 -8
  72. data/testing/rspec/spec/integration/linters/feature_without_name_linter_integration_spec.rb +0 -8
  73. data/testing/rspec/spec/integration/linters/feature_without_scenarios_linter_integration_spec.rb +0 -8
  74. data/testing/rspec/spec/integration/linters/linter_integration_spec.rb +0 -8
  75. data/testing/rspec/spec/integration/linters/linter_integration_specs.rb +0 -7
  76. data/testing/rspec/spec/integration/linters/outline_with_single_example_row_linter_integration_spec.rb +0 -8
  77. data/testing/rspec/spec/integration/linters/single_test_background_linter_integration_spec.rb +0 -8
  78. data/testing/rspec/spec/integration/linters/step_with_end_period_linter_integration_spec.rb +0 -8
  79. data/testing/rspec/spec/integration/linters/step_with_too_many_characters_linter_integration_spec.rb +0 -8
  80. data/testing/rspec/spec/integration/linters/test_should_use_background_linter_integration_spec.rb +0 -8
  81. data/testing/rspec/spec/integration/linters/test_with_action_step_as_final_step_linter_integration_spec.rb +0 -8
  82. data/testing/rspec/spec/integration/linters/test_with_bad_name_integration_spec.rb +0 -8
  83. data/testing/rspec/spec/integration/linters/test_with_no_action_step_integration_spec.rb +0 -8
  84. data/testing/rspec/spec/integration/linters/test_with_no_name_integration_spec.rb +0 -8
  85. data/testing/rspec/spec/integration/linters/test_with_no_verification_step_integration_spec.rb +0 -8
  86. data/testing/rspec/spec/integration/linters/test_with_setup_step_after_action_step_linter_integration_spec.rb +0 -8
  87. data/testing/rspec/spec/integration/linters/test_with_setup_step_after_verification_step_linter_integration_spec.rb +0 -8
  88. data/testing/rspec/spec/integration/linters/test_with_setup_step_as_final_step_linter_integration_spec.rb +0 -8
  89. data/testing/rspec/spec/integration/linters/test_with_too_many_steps_linter_integration_spec.rb +0 -8
  90. data/testing/rspec/spec/unit/cuke_linter_unit_spec.rb +0 -102
  91. data/testing/rspec/spec/unit/formatters/formatter_unit_specs.rb +0 -11
  92. data/testing/rspec/spec/unit/formatters/pretty_formatter_unit_spec.rb +0 -115
  93. data/testing/rspec/spec/unit/linters/background_does_more_than_setup_linter_unit_spec.rb +0 -77
  94. data/testing/rspec/spec/unit/linters/configurable_linter_unit_specs.rb +0 -11
  95. data/testing/rspec/spec/unit/linters/element_with_common_tags_linter_unit_spec.rb +0 -248
  96. data/testing/rspec/spec/unit/linters/element_with_duplicate_tags_linter_unit_spec.rb +0 -203
  97. data/testing/rspec/spec/unit/linters/element_with_too_many_tags_linter_unit_spec.rb +0 -296
  98. data/testing/rspec/spec/unit/linters/example_without_name_linter_unit_spec.rb +0 -81
  99. data/testing/rspec/spec/unit/linters/feature_file_with_invalid_name_linter_unit_spec.rb +0 -106
  100. data/testing/rspec/spec/unit/linters/feature_file_with_mismatched_name_linter_unit_spec.rb +0 -124
  101. data/testing/rspec/spec/unit/linters/feature_with_too_many_different_tags_linter_unit_spec.rb +0 -293
  102. data/testing/rspec/spec/unit/linters/feature_without_description_linter_unit_spec.rb +0 -80
  103. data/testing/rspec/spec/unit/linters/feature_without_name_linter_unit_spec.rb +0 -84
  104. data/testing/rspec/spec/unit/linters/feature_without_scenarios_linter_unit_spec.rb +0 -102
  105. data/testing/rspec/spec/unit/linters/linter_unit_spec.rb +0 -197
  106. data/testing/rspec/spec/unit/linters/linter_unit_specs.rb +0 -57
  107. data/testing/rspec/spec/unit/linters/outline_with_single_example_row_linter_unit_spec.rb +0 -184
  108. data/testing/rspec/spec/unit/linters/single_test_background_linter_unit_spec.rb +0 -89
  109. data/testing/rspec/spec/unit/linters/step_with_end_period_linter_unit_spec.rb +0 -54
  110. data/testing/rspec/spec/unit/linters/step_with_too_many_characters_linter_unit_spec.rb +0 -155
  111. data/testing/rspec/spec/unit/linters/test_should_use_background_linter_unit_spec.rb +0 -226
  112. data/testing/rspec/spec/unit/linters/test_with_action_step_as_final_step_linter_unit_spec.rb +0 -98
  113. data/testing/rspec/spec/unit/linters/test_with_bad_name_linter_unit_spec.rb +0 -81
  114. data/testing/rspec/spec/unit/linters/test_with_no_action_step_linter_unit_spec.rb +0 -176
  115. data/testing/rspec/spec/unit/linters/test_with_no_name_linter_unit_spec.rb +0 -88
  116. data/testing/rspec/spec/unit/linters/test_with_no_verification_step_linter_unit_spec.rb +0 -179
  117. data/testing/rspec/spec/unit/linters/test_with_setup_step_after_action_step_linter_unit_spec.rb +0 -124
  118. data/testing/rspec/spec/unit/linters/test_with_setup_step_after_verification_step_linter_unit_spec.rb +0 -125
  119. data/testing/rspec/spec/unit/linters/test_with_setup_step_as_final_step_linter_unit_spec.rb +0 -98
  120. data/testing/rspec/spec/unit/linters/test_with_too_many_steps_linter_unit_spec.rb +0 -192
@@ -1,88 +0,0 @@
1
- require_relative '../../../../../environments/rspec_env'
2
-
3
-
4
- RSpec.describe CukeLinter::TestWithNoNameLinter do
5
-
6
- let(:model_file_path) { 'some_file_path' }
7
-
8
- it_should_behave_like 'a linter at the unit level'
9
-
10
-
11
- it 'has a name' do
12
- expect(subject.name).to eq('TestWithNoNameLinter')
13
- end
14
-
15
- describe 'linting' do
16
-
17
- ['scenario', 'outline'].each do |model_type|
18
-
19
- context "with a #{model_type} that has no name" do
20
-
21
- context 'because its name is empty' do
22
-
23
- let(:test_model) do
24
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model", parent_file_path: model_file_path)
25
- model.name = ''
26
-
27
- model
28
- end
29
-
30
- it_should_behave_like 'a linter linting a bad model'
31
-
32
-
33
- it 'records a problem' do
34
- result = subject.lint(test_model)
35
-
36
- expect(result[:problem]).to eq('Test does not have a name.')
37
- end
38
-
39
- end
40
-
41
- context 'because its name is nil' do
42
-
43
- let(:test_model) do
44
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model", parent_file_path: model_file_path)
45
- model.name = nil
46
-
47
- model
48
- end
49
-
50
- it_should_behave_like 'a linter linting a bad model'
51
-
52
-
53
- it 'records a problem' do
54
- result = subject.lint(test_model)
55
-
56
- expect(result[:problem]).to eq('Test does not have a name.')
57
- end
58
-
59
- end
60
-
61
- end
62
-
63
- context "with a #{model_type} that does have a name" do
64
-
65
- let(:test_model) do
66
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model")
67
- model.name = 'foo'
68
-
69
- model
70
- end
71
-
72
- it_should_behave_like 'a linter linting a good model'
73
-
74
- end
75
-
76
- end
77
-
78
- context 'a non-test model' do
79
-
80
- let(:test_model) { CukeModeler::Model.new }
81
-
82
- it_should_behave_like 'a linter linting a good model'
83
-
84
- end
85
-
86
- end
87
-
88
- end
@@ -1,179 +0,0 @@
1
- require_relative '../../../../../environments/rspec_env'
2
-
3
-
4
- RSpec.describe CukeLinter::TestWithNoVerificationStepLinter do
5
-
6
- let(:model_file_path) { 'some_file_path' }
7
-
8
- it_should_behave_like 'a linter at the unit level'
9
-
10
-
11
- it 'has a name' do
12
- expect(subject.name).to eq('TestWithNoVerificationStepLinter')
13
- end
14
-
15
- describe 'linting' do
16
-
17
- ['scenario', 'outline'].each do |model_type|
18
-
19
- context "with a #{model_type} that has no verification step" do
20
-
21
- context 'because it has no steps' do
22
-
23
- context 'because its steps are empty' do
24
-
25
- let(:test_model) do
26
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model", parent_file_path: model_file_path)
27
- model.steps = []
28
-
29
- model
30
- end
31
-
32
- it_should_behave_like 'a linter linting a bad model'
33
-
34
-
35
- it 'records a problem' do
36
- result = subject.lint(test_model)
37
-
38
- expect(result[:problem]).to eq("Test does not have a 'Then' step.")
39
- end
40
-
41
- end
42
-
43
- context 'because its steps are nil' do
44
-
45
- let(:test_model) do
46
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model", parent_file_path: model_file_path)
47
- model.steps = nil
48
-
49
- model
50
- end
51
-
52
- it_should_behave_like 'a linter linting a bad model'
53
-
54
-
55
- it 'records a problem' do
56
- result = subject.lint(test_model)
57
-
58
- expect(result[:problem]).to eq("Test does not have a 'Then' step.")
59
- end
60
-
61
- end
62
-
63
- end
64
-
65
- context 'because none of its steps is a verification step' do
66
-
67
- let(:test_model) do
68
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model", parent_file_path: model_file_path)
69
- model.steps = [CukeModeler::Step.new('* not a verification step')]
70
-
71
- model
72
- end
73
-
74
- it_should_behave_like 'a linter linting a bad model'
75
-
76
-
77
- it 'records a problem' do
78
- result = subject.lint(test_model)
79
-
80
- expect(result[:problem]).to eq("Test does not have a 'Then' step.")
81
- end
82
-
83
- end
84
-
85
- end
86
-
87
- context "with a #{model_type} that does have a verification step" do
88
-
89
- context 'that comes from its background' do
90
-
91
- let(:test_model) do
92
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model")
93
- model.steps = []
94
- background_model = CukeModeler::Background.new
95
- background_model.steps = [CukeModeler::Step.new('Then a verification step')]
96
- model.parent_model.background = background_model
97
-
98
- model
99
- end
100
-
101
- it_should_behave_like 'a linter linting a good model'
102
-
103
- end
104
-
105
- context 'that is part of itself' do
106
-
107
- let(:test_model) do
108
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model")
109
- model.steps = [CukeModeler::Step.new('Then a verification step')]
110
-
111
- model
112
- end
113
-
114
- it_should_behave_like 'a linter linting a good model'
115
-
116
- end
117
-
118
- end
119
-
120
- end
121
-
122
- ['scenario', 'outline'].each do |model_type|
123
-
124
- context "with a #{model_type} that has a related background" do
125
-
126
- let(:test_model) do
127
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model")
128
- model.parent_model.background = background_model
129
-
130
- model
131
- end
132
-
133
- context 'that has no background steps' do
134
- context 'because its steps are empty' do
135
-
136
- let(:background_model) do
137
- model = CukeModeler::Background.new
138
- model.steps = []
139
-
140
- model
141
- end
142
-
143
- it 'can handle it' do
144
- expect { subject.lint(test_model) }.to_not raise_error
145
- end
146
-
147
- end
148
-
149
- context 'because its steps are nil' do
150
-
151
- let(:background_model) do
152
- model = CukeModeler::Background.new
153
- model.steps = nil
154
-
155
- model
156
- end
157
-
158
- it 'can handle it' do
159
- expect { subject.lint(test_model) }.to_not raise_error
160
- end
161
-
162
- end
163
-
164
- end
165
-
166
- end
167
-
168
- end
169
-
170
-
171
- context 'a non-test model' do
172
-
173
- let(:test_model) { CukeModeler::Model.new }
174
-
175
- it_should_behave_like 'a linter linting a good model'
176
-
177
- end
178
- end
179
- end
@@ -1,124 +0,0 @@
1
- require_relative '../../../../../environments/rspec_env'
2
-
3
-
4
- RSpec.describe CukeLinter::TestWithSetupStepAfterActionStepLinter do
5
-
6
- let(:model_file_path) { 'some_file_path' }
7
-
8
- it_should_behave_like 'a linter at the unit level'
9
-
10
-
11
- it 'has a name' do
12
- expect(subject.name).to eq('TestWithSetupStepAfterActionStepLinter')
13
- end
14
-
15
- describe 'linting' do
16
-
17
- ['scenario', 'outline'].each do |model_type|
18
-
19
- context "with a #{model_type} that has a setup step after an action step" do
20
-
21
- let(:test_model) do
22
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model",
23
- parent_file_path: model_file_path)
24
- model.steps = [CukeModeler::Step.new('When a step'),
25
- CukeModeler::Step.new('Given a step')]
26
-
27
- model
28
- end
29
-
30
- it_should_behave_like 'a linter linting a bad model'
31
-
32
-
33
- it 'records a problem' do
34
- result = subject.lint(test_model)
35
-
36
- expect(result[:problem]).to eq("Test has 'Given' step after 'When' step.")
37
- end
38
-
39
- end
40
-
41
- context "with a #{model_type} that does not have a setup step after an action step" do
42
-
43
- context 'because it has no steps' do
44
-
45
- context 'because its steps are empty' do
46
-
47
- let(:test_model) do
48
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model")
49
- model.steps = []
50
-
51
- model
52
- end
53
-
54
- it_should_behave_like 'a linter linting a good model'
55
-
56
- end
57
-
58
- context 'because its steps are nil' do
59
-
60
- let(:test_model) do
61
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model")
62
- model.steps = nil
63
-
64
- model
65
- end
66
-
67
- it_should_behave_like 'a linter linting a good model'
68
-
69
- end
70
-
71
- end
72
-
73
- context 'because its setup steps come before its action steps' do
74
-
75
- let(:test_model) do
76
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model")
77
- model.steps = [CukeModeler::Step.new('* a step')]
78
-
79
- model
80
- end
81
-
82
- it_should_behave_like 'a linter linting a good model'
83
-
84
- end
85
-
86
- end
87
-
88
- context "with a #{model_type} that has an associated background" do
89
-
90
- let(:test_model) do
91
- feature_model = CukeLinter::ModelFactory.generate_feature_model(source_text: 'Feature:
92
- Background:
93
- Given a step
94
- When a step
95
- Given a step
96
- When a step')
97
-
98
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model")
99
- model.steps = [CukeModeler::Step.new('Given a step')]
100
-
101
- model.parent_model = feature_model
102
- feature_model.tests << model
103
-
104
- model
105
- end
106
-
107
- it 'does not consider those steps when linting' do
108
- expect(subject.lint(test_model)).to eq(nil)
109
- end
110
-
111
- end
112
-
113
- end
114
-
115
-
116
- context 'a non-test model' do
117
-
118
- let(:test_model) { CukeModeler::Model.new }
119
-
120
- it_should_behave_like 'a linter linting a good model'
121
-
122
- end
123
- end
124
- end
@@ -1,125 +0,0 @@
1
- require_relative '../../../../../environments/rspec_env'
2
-
3
-
4
- RSpec.describe CukeLinter::TestWithSetupStepAfterVerificationStepLinter do
5
-
6
- let(:model_file_path) { 'some_file_path' }
7
-
8
- it_should_behave_like 'a linter at the unit level'
9
-
10
-
11
- it 'has a name' do
12
- expect(subject.name).to eq('TestWithSetupStepAfterVerificationStepLinter')
13
- end
14
-
15
- describe 'linting' do
16
-
17
- ['scenario', 'outline'].each do |model_type|
18
-
19
- context "with a #{model_type} that has a setup step after a verification step" do
20
-
21
- let(:test_model) do
22
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model",
23
- parent_file_path: model_file_path)
24
- model.steps = [CukeModeler::Step.new('Then a step'),
25
- CukeModeler::Step.new('Given a step')]
26
-
27
- model
28
- end
29
-
30
- it_should_behave_like 'a linter linting a bad model'
31
-
32
-
33
- it 'records a problem' do
34
- result = subject.lint(test_model)
35
-
36
- expect(result[:problem]).to eq("Test has 'Given' step after 'Then' step.")
37
- end
38
-
39
- end
40
-
41
- context "with a #{model_type} that does not have a setup step after a verification step" do
42
-
43
- context 'because it has no steps' do
44
-
45
- context 'because its steps are empty' do
46
-
47
- let(:test_model) do
48
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model")
49
- model.steps = []
50
-
51
- model
52
- end
53
-
54
- it_should_behave_like 'a linter linting a good model'
55
-
56
- end
57
-
58
- context 'because its steps are nil' do
59
-
60
- let(:test_model) do
61
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model")
62
- model.steps = nil
63
-
64
- model
65
- end
66
-
67
- it_should_behave_like 'a linter linting a good model'
68
-
69
- end
70
-
71
- end
72
-
73
- context 'because its setup steps come before its verification steps' do
74
-
75
- let(:test_model) do
76
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model")
77
- model.steps = [CukeModeler::Step.new('Given a step'),
78
- CukeModeler::Step.new('Then a step'),]
79
-
80
- model
81
- end
82
-
83
- it_should_behave_like 'a linter linting a good model'
84
-
85
- end
86
-
87
- end
88
-
89
- context "with a #{model_type} that has an associated background" do
90
-
91
- let(:test_model) do
92
- feature_model = CukeLinter::ModelFactory.generate_feature_model(source_text: 'Feature:
93
- Background:
94
- Given a step
95
- Then a step
96
- Given a step
97
- Then a step')
98
-
99
- model = CukeLinter::ModelFactory.send("generate_#{model_type}_model")
100
- model.steps = [CukeModeler::Step.new('Given a step')]
101
-
102
- model.parent_model = feature_model
103
- feature_model.tests << model
104
-
105
- model
106
- end
107
-
108
- it 'does not consider those steps when linting' do
109
- expect(subject.lint(test_model)).to eq(nil)
110
- end
111
-
112
- end
113
-
114
- end
115
-
116
-
117
- context 'a non-test model' do
118
-
119
- let(:test_model) { CukeModeler::Model.new }
120
-
121
- it_should_behave_like 'a linter linting a good model'
122
-
123
- end
124
- end
125
- end