Sha256: bffc783519ca98e4b7e593af70b3df05f2f1c91be627bb7cd99b43bf2bf675f2

Contents?: true

Size: 964 Bytes

Versions: 6

Compression:

Stored size: 964 Bytes

Contents

Feature: The #each_rake_task DSL method with an argument of a defined task

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

  Scenario: enumerate only the matching Rake task
    Given a full-featured Rakefile
    And a Capfile with:
      """
      Cape do
        each_rake_task 'with_period' do |t|
          $stdout.puts '', "Name: #{t[:name].inspect}"
          if t[:parameters]
            $stdout.puts "Parameters: #{t[:parameters].inspect}"
          end
          if t[:description]
            $stdout.puts "Description: #{t[:description].inspect}"
          end
        end
      end
      """
    When I run `cap -T`
    Then the output should contain:
      """

      Name: "with_period"
      Description: "Ends with period."
      """
    And the output should not contain:
      """

      Name: "without_period"
      Description: "Ends without period"
      """

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cape-1.5.0 features/dsl/each_rake_task/with_defined_task_argument.feature
cape-1.4.0 features/dsl/each_rake_task/with_defined_task_argument.feature
cape-1.3.0 features/dsl/each_rake_task/with_defined_task_argument.feature
cape-1.2.0 features/dsl/each_rake_task/with_defined_task_argument.feature
cape-1.1.0 features/dsl/each_rake_task/with_defined_task_argument.feature
cape-1.0.3 features/dsl/each_rake_task/with_defined_task_argument.feature