Sha256: 333e45ba732b07ff66d9b346723b9ae3b505e47b4ac8ba4195cdf7bf519f2fc8

Contents?: true

Size: 943 Bytes

Versions: 1

Compression:

Stored size: 943 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 -vT`
    Then the output should contain:
      """

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cape-1.7.0 features/dsl/each_rake_task/with_defined_task.feature