Compare commits

...

2 Commits

2 changed files with 22 additions and 0 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

@ -0,0 +1,21 @@
require_relative '../.env'
ENV["DB_NAME"] = "test_#{ENV["DB_NAME"]}"
require_relative '../app'
require 'rubygems'
require 'roda'
require 'sequel'
require 'rspec'
require 'rack/test'
def app
App
end
describe "Submit API request to create new link" do
include Rack::Test::Methods
it "should return link data in json format" do
post '/create'
last_response.should be_ok
end
end