Sha256: cb57d31eb33c6d4ff5c546c237b2d0f74b6a62a7eb17af907db99855a996bc8d

Contents?: true

Size: 621 Bytes

Versions: 8

Compression:

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

Then /^the response should not be empty$/ do
  @response.should_not be_empty
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
github_api-0.4.11 features/step_definitions/common_steps.rb
github_api-0.4.10 features/step_definitions/common_steps.rb
github_api-0.4.9 features/step_definitions/common_steps.rb
github_api-0.4.8 features/step_definitions/common_steps.rb
github_api-0.4.7 features/step_definitions/common_steps.rb
github_api-0.4.6 features/step_definitions/common_steps.rb
github_api-0.4.5 features/step_definitions/common_steps.rb
github_api-0.4.4 features/step_definitions/common_steps.rb