middleman/middleman-core/features/3rd_party_cli.feature
2012-04-16 15:38:26 -07:00

15 lines
No EOL
415 B
Gherkin

Feature: Allow config.rb and extensions to add CLI commands
Scenario: Command autoloaded from tasks/ directory
Given an empty app
And a file named "tasks/hello_task.rb" with:
"""
class Hello < Thor
desc "hello", "Say hello"
def hello
puts "Hello World"
end
end
"""
When I run `middleman hello`
Then the output should contain "Hello World"