Sha256: 332544faddca5b0dee36c319bdc0f365a257af7a3e8f235f5ccbdf2a8883e230
Contents?: true
Size: 1007 Bytes
Versions: 3
Compression:
Stored size: 1007 Bytes
Contents
Given /^I am an authenticated user on semaphoreapp\.com$/ do @auth_token = SEMAPHORE_TEST_TOKEN @project = '649e584dc507ca4b73e1374d3125ef0b567a949c' @branch = '89' end Given /^get the list of all my projects via their API$/ do @response = Git::Semaphore::Api.get_response Git::Semaphore::Api.projects_uri(@auth_token) end Given /^get the list of all the branches for one of my projects via their API$/ do @response = Git::Semaphore::Api.get_response Git::Semaphore::Api.branches_uri(@project, @auth_token) end Given /^get the build status of one of the branches for one of my projects via their API$/ do @response = Git::Semaphore::Api.get_response Git::Semaphore::Api.status_uri(@project, @branch, @auth_token) end Given /^request to rebuild the last revision of one of the branches for one of my projects via their API$/ do @response = Git::Semaphore::Api.get_response Git::Semaphore::Api.last_revision_uri(@project, @branch, @auth_token), :post end def last_json @response.body end
Version data entries
3 entries across 3 versions & 1 rubygems