Sha256: 8b382006cc46ee7d8738abcfc2d69bd881bdca9fe20d8cf73025ecd96896c9fa
Contents?: true
Size: 796 Bytes
Versions: 5
Compression:
Stored size: 796 Bytes
Contents
After do File.delete ".wally" if File.exist? ".wally" end Given /^I don't have a \.wally authorisation file$/ do end Given /^I have a \.wally authentication file$/ do @authentication_code = "authCodE!!2322" File.open(".wally", "w") do |file| file.write @authentication_code end end When /^I put data to \/features with the authentication code$/ do gherkin = Wally::ParsesFeatures.new.parse("Feature: Feature Name") data = [{:path => "feature-name.feature", :gherkin => gherkin}].to_json page.driver.put "/features?authentication_code=#{@authentication_code}", data end Then /^I should get a (\d+) http status$/ do |status| page.driver.status_code.should eql status.to_i end Then /^I should see the uploaded feature$/ do page.body.should have_content "Feature Name" end
Version data entries
5 entries across 5 versions & 1 rubygems