diff --git a/Jenkinsfile b/Jenkinsfile index 6363195..a4d1c48 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,6 +26,7 @@ pipeline { stage('Run tests') { steps { sh 'cucumber features --format html --out coverage/cucumber.html' + sh 'rspec spec' } } stage('Report results') { diff --git a/spec/create_spec.rb b/spec/create_spec.rb index 2e21d18..558820e 100644 --- a/spec/create_spec.rb +++ b/spec/create_spec.rb @@ -13,7 +13,7 @@ end describe "Submit API request to create new link" do include Rack::Test::Methods - it "should return a link to the url provided" do + it "should return link data in json format" do post '/create' last_response.should be_ok end