File: show.feature

package info (click to toggle)
ruby-guard 2.18.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,344 kB
  • sloc: ruby: 9,256; makefile: 6
file content (29 lines) | stat: -rw-r--r-- 911 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Feature: Show

  In order to know the defined groups and plugins
  As a developer using Guard
  I want to see a table of groups and plugins

  @in-process
  Scenario: Show error when no Guardfile
    When I run `guard show`
    Then the output should match /No Guardfile found, please create one with `guard init`\./
    And the exit status should not be 0

  @in-process
  Scenario: Show error when Guardfile has no plugins
    Given an empty file named "Guardfile"
    When I run `guard show`
    Then the output should match /No Guard plugins found in Guardfile, please add at least one\.$/
    # TODO: this step fails
    # And the exit status should not be 0

  @in-process
  Scenario: Show plugins and their configuration
    Given a file named "Guardfile" with:
    """
    guard :cucumber do
    end
    """
    When I run `guard show`
    Then the output should match /^\s+\| Default \| Cucumber\s+\|/