features/yaml.feature in reek-1.2.7.3 vs features/yaml.feature in reek-1.2.8
- old
+ new
@@ -52,34 +52,34 @@
context: Dirty#a
source: spec/samples/masked/dirty.rb
smell:
class: NestedIterators
depth: 2
- subclass: ""
+ subclass: NestedIterators
message: contains iterators nested 2 deep
status:
is_active: true
"""
@stdin
Scenario: return non-zero status when there are smells
- When I pass "# test class\nclass Turn; def fred(arg = true) end end" to reek --yaml
+ When I pass "class Turn; end" to reek --yaml
Then the exit status indicates smells
And it reports:
"""
---
- !ruby/object:Reek::SmellWarning
location:
lines:
- - 2
- context: Turn#fred
+ - 1
+ context: Turn
source: $stdin
smell:
- parameter: arg
- class: ControlCouple
- subclass: BooleanParameter
- message: has boolean parameter 'arg'
+ class: IrresponsibleModule
+ subclass: IrresponsibleModule
+ module_name: Turn
+ message: has no descriptive comment
status:
is_active: true
"""