Sha256: d8e9eff3ad82d48627544cd669f72f653c60d375bb10ecd806897038c6348f58

Contents?: true

Size: 768 Bytes

Versions: 2

Compression:

Stored size: 768 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

def last_json
  @response.body
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
git-semaphore-0.0.3 features/step_definitions/vcr_semaphore_steps.rb
git-semaphore-0.0.2 features/step_definitions/vcr_semaphore_steps.rb