adding in the positive test case

This commit is contained in:
darkbushido 2014-08-20 15:54:49 -05:00
parent 15a7ed0031
commit 73911e9007
No known key found for this signature in database
GPG Key ID: 3922EB70FB80E8DD
2 changed files with 10 additions and 1 deletions

View File

@ -33,7 +33,12 @@ Feature: Launching `msfconsole`
Then the output should contain "[-] Failed to connect to the database: could not connect to server" Then the output should contain "[-] Failed to connect to the database: could not connect to server"
Then the output should contain "[*] postgresql selected, no connection" Then the output should contain "[*] postgresql selected, no connection"
Scenario: Starting `msfconsole` with a valid database.yml
Given I run `msfconsole` interactively
And I wait for stdout to contain "Free Metasploit Pro trial: http://r-7.co/trymsp"
When I type "db_status"
And I type "exit"
Then the output should contain "[*] postgresql connected to metasploit_framework_test"

View File

@ -1,3 +1,7 @@
Before do
set_env('RAILS_ENV', 'test')
end
Before('@msfconsole') do Before('@msfconsole') do
step 'I run `msfconsole` interactively' step 'I run `msfconsole` interactively'
step 'I wait for stdout to contain "Free Metasploit Pro trial: http://r-7.co/trymsp"' step 'I wait for stdout to contain "Free Metasploit Pro trial: http://r-7.co/trymsp"'