Sha256: 056264984b41ae18bbc4139801fb3d83e5121eba4d2a06b2b45b8a22296e9287

Contents?: true

Size: 743 Bytes

Versions: 8

Compression:

Stored size: 743 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
  data = [{:path => "feature-name.feature", :content => "Feature: Feature Name"}].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

8 entries across 8 versions & 1 rubygems

Version Path
wally-0.0.28 features/step_definitions/push_features_steps.rb
wally-0.0.27 features/step_definitions/push_features_steps.rb
wally-0.0.26 features/step_definitions/push_features_steps.rb
wally-0.0.25 features/step_definitions/push_features_steps.rb
wally-0.0.24 features/step_definitions/push_features_steps.rb
wally-0.0.22 features/step_definitions/push_features_steps.rb
wally-0.0.21 features/step_definitions/push_features_steps.rb
wally-0.0.20 features/step_definitions/push_features_steps.rb