Sha256: 06bab3517d0ea2c07a92532f543f47a0fe239ff028fab802bc1a3e04774f77eb

Contents?: true

Size: 915 Bytes

Versions: 4

Compression:

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

Then /^I get a (\d+) http status$/ do |status|
  page.driver.status_code.should eql status.to_i
end

Then /^I see the uploaded feature$/ do
  page.body.should have_content "Feature Name"
end

When /^I put data to \/my_project_name\/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 "/projects/my_project_name/features?authentication_code=#{@authentication_code}", data
end

When /^I visit "([^"]*)" page$/ do |project_name|
  visit "/projects/#{project_name}"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wally-0.0.44 features/step_definitions/push_features_steps.rb
wally-0.0.43 features/step_definitions/push_features_steps.rb
wally-0.0.42 features/step_definitions/push_features_steps.rb
wally-0.0.41 features/step_definitions/push_features_steps.rb