Merge pull request #1371 from AndrewKvalheim/console
Add a basic feature test for the console.
This commit is contained in:
commit
e4090760e8
|
@ -29,7 +29,7 @@ module Middleman::Cli
|
|||
debug: options['verbose']
|
||||
}
|
||||
|
||||
@app = ::Middleman::Application.server.inst do
|
||||
@app = ::Middleman::Application.new do
|
||||
config[:environment] = opts[:environment].to_sym if opts[:environment]
|
||||
|
||||
::Middleman::Logger.singleton(opts[:debug] ? 0 : 1, opts[:instrumenting] || false)
|
||||
|
|
10
middleman-core/features/console.feature
Normal file
10
middleman-core/features/console.feature
Normal file
|
@ -0,0 +1,10 @@
|
|||
Feature: Console
|
||||
|
||||
Scenario: Enter and exit the console
|
||||
Given I run `middleman console` interactively
|
||||
When I type "puts 'Hello from the console.'"
|
||||
And I type "exit"
|
||||
Then it should pass with:
|
||||
"""
|
||||
Hello from the console.
|
||||
"""
|
Loading…
Reference in a new issue