Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

avoid deprecated warnings

  • Loading branch information...
commit 7f5ce8e7484580c254b88a56f117f8375f69d278 1 parent e82bc60
@cv authored
Showing with 10 additions and 10 deletions.
  1. +10 −10 features/steps/rally_steps.rb
View
20 features/steps/rally_steps.rb
@@ -30,7 +30,7 @@ def get_project
end
Then /^I should see a usage screen$/ do
- Then "the output should contain:", <<-TEXT
+ step "the output should contain:", <<-TEXT
Usage: crab <command> [options*]
crab version #{Crab::VERSION}: A Cucumber-Rally bridge
@@ -58,11 +58,11 @@ def get_project
end
When /^I type my username$/ do
- When %Q{I type "#{get_rally_credentials.first}"}
+ step %Q{I type "#{get_rally_credentials.first}"}
end
When /^I type my password$/ do
- When %Q{I type "#{get_rally_credentials.last}"}
+ step %Q{I type "#{get_rally_credentials.last}"}
end
Given /^I am logged in$/ do
@@ -104,8 +104,8 @@ def get_project
end
Given /^no project is selected$/ do
- Given 'I run `rm -rf ".crab/project"`'
- Then 'the exit status should be 0'
+ step 'I run `rm -rf ".crab/project"`'
+ step 'the exit status should be 0'
end
Given /^I have selected the project "([^"]*)"$/ do |project|
@@ -118,15 +118,15 @@ def get_project
end
Given /^I have selected my test project$/ do
- When %{I run `crab project "#{get_project}"`}
- Then %{the exit status should be 0}
+ step %{I run `crab project "#{get_project}"`}
+ step %{the exit status should be 0}
end
When /^I select my test project$/ do
- When %{I run `crab project "#{get_project}"`}
- Then %{the exit status should be 0}
+ step %{I run `crab project "#{get_project}"`}
+ step %{the exit status should be 0}
end
Then /^the output should be the name of my test project$/ do
- Then %Q{the output should contain "#{get_project}"}
+ step %Q{the output should contain "#{get_project}"}
end
Please sign in to comment.
Something went wrong with that request. Please try again.