Commit d3c1bfbbf1506b02be970458d44f0894b212866f
1 parent
6d8fd953
Exists in
master
and in
11 other branches
rails4: fix cucumber deprecation warnings
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
features/step_definitions/activate_enterprise_steps.rb
@@ -49,7 +49,7 @@ Given /^enterprise "([^\"]*)" is enabled$/ do |enterprise| | @@ -49,7 +49,7 @@ Given /^enterprise "([^\"]*)" is enabled$/ do |enterprise| | ||
49 | end | 49 | end |
50 | 50 | ||
51 | Given /^enterprise "([^\"]*)" should be blocked$/ do |enterprise| | 51 | Given /^enterprise "([^\"]*)" should be blocked$/ do |enterprise| |
52 | - Enterprise.find_by_name(enterprise).blocked?.should be_true | 52 | + Enterprise.find_by_name(enterprise).blocked?.should be_true |
53 | end | 53 | end |
54 | 54 | ||
55 | Given /^enterprise "([^\"]*)" should not be blocked$/ do |enterprise| | 55 | Given /^enterprise "([^\"]*)" should not be blocked$/ do |enterprise| |
features/step_definitions/create_community_steps.rb
@@ -9,7 +9,7 @@ Given /^I create community "(.+)"$/ do |community| | @@ -9,7 +9,7 @@ Given /^I create community "(.+)"$/ do |community| | ||
9 | end | 9 | end |
10 | 10 | ||
11 | Given /^"(.+)" creates the community "(.+)"$/ do |username, community| | 11 | Given /^"(.+)" creates the community "(.+)"$/ do |username, community| |
12 | - When %{I go to #{username}'s control panel} | 12 | + step %{I go to #{username}'s control panel} |
13 | click_link('Manage my groups') | 13 | click_link('Manage my groups') |
14 | click_link('Create a new community') | 14 | click_link('Create a new community') |
15 | fill_in("Name", :with => community) | 15 | fill_in("Name", :with => community) |