Sha256: 468486cacf77e18e4bd5eaca6bf2bc80355f802d3686f9e6b4e325afbf354feb
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 KB
Contents
Feature: The #each_rake_task DSL method with an argument of a defined namespace 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 Rake tasks in the matching namespace Given a full-featured Rakefile And a file named "Capfile" with: """ require 'cape' Cape do each_rake_task :my_namespace 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 not contain: """ Name: "with_period" Description: "Ends with period." """ And the output should contain: """ Name: "my_namespace:in_a_namespace" Description: "My task in a namespace" """ And the output should contain: """ Name: "my_namespace:my_nested_namespace:in_a_nested_namespace" Description: "My task in a nested namespace" """
Version data entries
3 entries across 3 versions & 1 rubygems