Sha256: 868a20169e469811fa4fa5b63e8405a103fd3d42a8d76f3ffb375b2ae19fe3af

Contents?: true

Size: 828 Bytes

Versions: 6

Compression:

Stored size: 828 Bytes

Contents

Feature: The #mirror_rake_tasks DSL method with an undefined argument

  In order to include Rake tasks with descriptions in my Capistrano recipes,
  As a developer using Cape,
  I want to use the Cape DSL.

  Scenario: do not mirror any Rake tasks
    Given a full-featured Rakefile
    And a Capfile with:
      """
      Cape do
        mirror_rake_tasks 'this_does_not_exist'
      end
      """
    When I run `cap -T`
    Then the output should not contain "cap with_period"

  Scenario: do not mirror Rake task 'with_period'
    Given a full-featured Rakefile
    And a Capfile with:
      """
      Cape do
        mirror_rake_tasks :this_does_not_exist
      end
      """
    When I run `cap -e with_period`
    Then the output should contain exactly:
      """
      The task `with_period' does not exist.

      """

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cape-1.5.0 features/dsl/mirror_rake_tasks/with_undefined_argument.feature
cape-1.4.0 features/dsl/mirror_rake_tasks/with_undefined_argument.feature
cape-1.3.0 features/dsl/mirror_rake_tasks/with_undefined_argument.feature
cape-1.2.0 features/dsl/mirror_rake_tasks/with_undefined_argument.feature
cape-1.1.0 features/dsl/mirror_rake_tasks/with_undefined_argument.feature
cape-1.0.3 features/dsl/mirror_rake_tasks/with_undefined_argument.feature