Tweaks to get the cucumber tests passing.

This commit is contained in:
Marco Vermeulen
2012-09-02 14:03:31 +01:00
parent bdeffbe14d
commit 17214fdd5d
4 changed files with 3 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ function help {
}
if [ -f "$HOME/.gvmtest" ]; then
GVM_SERVICE="http://localhost:8080/gvm-service"
GVM_SERVICE="http://localhost:8080"
fi
if [ ! -d "$GVM_DIR" ]; then

View File

@@ -3,6 +3,7 @@ Feature: Command Line Interop
Background:
Given an initialised system
@webservice
Scenario: Enter gvm
When I enter "gvm"
Then I see "Usage: gvm <command> <candidate> [version]"

View File

@@ -24,7 +24,3 @@ private cleanUp(){
Before("@webservice"){
def server = startServer()
}
//After("@webservice"){
// stopServer(server)
//}

View File

@@ -6,7 +6,7 @@ home = System.getProperty('user.home')
gvmDir = new File("${home}/.gvm")
Given(~'^the default "([^"]*)" candidate is "([^"]*)"$') { String candidate, String version ->
def candidateVersion = new URL("http://localhost:8080/gvm-service/${candidate}/version").text
def candidateVersion = new URL("http://localhost:8080/${candidate}/version").text
assert candidateVersion == version
}