added rspec step in tests stage, adjusted should clause
parent
c45cf6ab51
commit
0dec27a01c
|
|
@ -26,6 +26,7 @@ pipeline {
|
|||
stage('Run tests') {
|
||||
steps {
|
||||
sh 'cucumber features --format html --out coverage/cucumber.html'
|
||||
sh 'rspec spec'
|
||||
}
|
||||
}
|
||||
stage('Report results') {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue