From d3c1bfbbf1506b02be970458d44f0894b212866f Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Tue, 15 Sep 2015 22:12:30 -0300 Subject: [PATCH] rails4: fix cucumber deprecation warnings --- features/step_definitions/activate_enterprise_steps.rb | 2 +- features/step_definitions/create_community_steps.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/step_definitions/activate_enterprise_steps.rb b/features/step_definitions/activate_enterprise_steps.rb index 49aada5..3578108 100644 --- a/features/step_definitions/activate_enterprise_steps.rb +++ b/features/step_definitions/activate_enterprise_steps.rb @@ -49,7 +49,7 @@ Given /^enterprise "([^\"]*)" is enabled$/ do |enterprise| end Given /^enterprise "([^\"]*)" should be blocked$/ do |enterprise| - Enterprise.find_by_name(enterprise).blocked?.should be_true + Enterprise.find_by_name(enterprise).blocked?.should be_true end Given /^enterprise "([^\"]*)" should not be blocked$/ do |enterprise| diff --git a/features/step_definitions/create_community_steps.rb b/features/step_definitions/create_community_steps.rb index b303f53..b5c723c 100644 --- a/features/step_definitions/create_community_steps.rb +++ b/features/step_definitions/create_community_steps.rb @@ -9,7 +9,7 @@ Given /^I create community "(.+)"$/ do |community| end Given /^"(.+)" creates the community "(.+)"$/ do |username, community| - When %{I go to #{username}'s control panel} + step %{I go to #{username}'s control panel} click_link('Manage my groups') click_link('Create a new community') fill_in("Name", :with => community) -- libgit2 0.21.2