cucumber-api-steps 0.7 → 0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cucumber/api_steps.rb +2 -2
- data/lib/cucumber/api_steps/version.rb +1 -1
- metadata +3 -3
data/lib/cucumber/api_steps.rb
CHANGED
@@ -3,8 +3,8 @@ require 'jsonpath'
|
|
3
3
|
World(Rack::Test::Methods)
|
4
4
|
|
5
5
|
Given /^I send and accept (XML|JSON)$/ do |type|
|
6
|
-
page.driver.header 'Accept', "
|
7
|
-
page.driver.header 'Content-Type', "
|
6
|
+
page.driver.header 'Accept', "application/#{type.downcase}"
|
7
|
+
page.driver.header 'Content-Type', "application/#{type.downcase}"
|
8
8
|
end
|
9
9
|
|
10
10
|
When /^I authenticate as the user "([^"]*)" with the password "([^"]*)"$/ do |user, pass|
|
metadata
CHANGED