added rspec step in tests stage, adjusted should clause
parent
c45cf6ab51
commit
0dec27a01c
|
|
@ -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') {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue