Sha256: 87325b6ffb6a0075f65289dd86857f25d08ed7d15248c13f2c6341339ae669dd
Contents?: true
Size: 1.65 KB
Versions: 1
Compression:
Stored size: 1.65 KB
Contents
Feature: Running skeptic Scenario: Nothing to complain about Given a file named "input.rb" with: """ foo """ When I run `skeptic input.rb` Then it should pass with: """ OK """ Scenario: Banishing semicolons Given a file named "input.rb" with: """ foo; bar """ When I run `skeptic --no-semicolons input.rb` Then it should fail with: """ No semicolons as expression separators * You have a semicolon at line 1, column 3 """ Scenario: Limiting method length Given a file named "input.rb" with: """ class Foo def bar one two three end end """ When I run `skeptic --lines-per-method 2 input.rb` Then it should fail with: """ Number of lines per method (2) * Foo#bar is 3 lines long """ Scenario: Limiting depth of nesting Given a file named "input.rb" with: """ class Foo def bar while true if false really? end end end end """ When I run `skeptic --max-nesting-depth 1 input.rb` Then it should fail with: """ Maximum nesting depth (1) * Foo#bar has 2 levels of nesting: while > if """ Scenario: Limiting number of methods per class Given a file named "input.rb" with: """ class Foo def bar; end def baz; end end """ When I run `skeptic --methods-per-class 1 input.rb` Then it should fail with: """ Number of methods per class (1) * Foo has 2 methods: #bar, #baz """
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
skeptic-0.0.0 | features/skeptic.feature |