Sha256: 477b1d7fe3fbf5996ef8b6d9cb5ca6ea7dd9fa3a1d4c59acaf9ecb9861ae7b79

Contents?: true

Size: 929 Bytes

Versions: 7

Compression:

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

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

7 entries across 7 versions & 1 rubygems

Version Path
wally-0.0.40 features/step_definitions/push_features_steps.rb
wally-0.0.39 features/step_definitions/push_features_steps.rb
wally-0.0.38 features/step_definitions/push_features_steps.rb
wally-0.0.37 features/step_definitions/push_features_steps.rb
wally-0.0.36 features/step_definitions/push_features_steps.rb
wally-0.0.35 features/step_definitions/push_features_steps.rb
wally-0.0.34 features/step_definitions/push_features_steps.rb