1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/middleman-core/features/3rd_party_cli.feature

15 lines
415 B
Gherkin
Raw Normal View History

2011-12-21 14:11:38 -05:00
Feature: Allow config.rb and extensions to add CLI commands
2012-04-16 18:38:26 -04:00
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
"""
2011-12-21 14:11:38 -05:00
When I run `middleman hello`
Then the output should contain "Hello World"