added rspec step in tests stage, adjusted should clause

pull/21/head
Adam Townsend 2023-10-11 11:04:08 -07:00
parent c45cf6ab51
commit 0dec27a01c
2 changed files with 2 additions and 1 deletions

1
Jenkinsfile vendored
View File

@ -26,6 +26,7 @@ pipeline {
stage('Run tests') { stage('Run tests') {
steps { steps {
sh 'cucumber features --format html --out coverage/cucumber.html' sh 'cucumber features --format html --out coverage/cucumber.html'
sh 'rspec spec'
} }
} }
stage('Report results') { stage('Report results') {

View File

@ -13,7 +13,7 @@ end
describe "Submit API request to create new link" do describe "Submit API request to create new link" do
include Rack::Test::Methods 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' post '/create'
last_response.should be_ok last_response.should be_ok
end end