Sha256: 1be1456b35b3328929aec65abba29e3d80cc05ead63a89d940d41ef4c3314ac6

Contents?: true

Size: 539 Bytes

Versions: 2

Compression:

Stored size: 539 Bytes

Contents

Before do
  step "I have github instance"
end

When /^(.*) within a cassette named "([^"]*)"$/ do |step_to_call, cassette_name|
  VCR.use_cassette(cassette_name) { step step_to_call }
end

Then /^the response should be "([^"]*)"$/ do |expected_response|
  @response.status.should eql expected_response.to_i
end

Then /^the response type should be "([^"]*)"$/ do |type|
  @response.content_type.should =~ /application\/#{type.downcase}/
end

Then /^the response should have (\d+) items$/ do |size|
  @response.size.should eql size.to_i
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
github_api-0.4.3 features/step_definitions/common_steps.rb
github_api-0.4.2 features/step_definitions/common_steps.rb