Sha256: 3fc3102b788ea731a00000467c6d04933f649ce6dd4a2d058584286a60ec9370
Contents?: true
Size: 826 Bytes
Versions: 3
Compression:
Stored size: 826 Bytes
Contents
When /^I fetch all the plans$/ do @plans = client.plans end Then /^I should get a list of plans$/ do @plans.should_not be_empty @plans.each { |plan| plan.should be_kind_of(Bamboo::Client::Rest::Plan) } end When /^I fetch all projects$/ do @projects = client.projects end Then /^I should get a list of projects$/ do @projects.should_not be_empty @projects.each { |pro| pro.should be_kind_of(Bamboo::Client::Rest::Project) } end Then /^all plans should have a key$/ do @plans.each { |e| e.key.should be_kind_of(String) } end Then /^all projects should have a key$/ do @projects.each { |e| e.key.should be_kind_of(String) } end When /^I fetch all builds$/ do @builds = client.builds end Then /^all builds should have a state$/ do @builds.each { |b| [:successful, :failed].should include(b.state) } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bamboo-client-0.0.6 | features/step_definitions/rest_steps.rb |
bamboo-client-0.0.5 | features/step_definitions/rest_steps.rb |
bamboo-client-0.0.4 | features/step_definitions/rest_steps.rb |