diff --git a/Gemfile.lock b/Gemfile.lock index ceb24d1b..2ca27abb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -53,7 +53,7 @@ GEM bushido_stub (0.0.3) activesupport (>= 3.0.7) cancan (1.6.5) - capybara (1.1.1) + capybara (1.1.2) mime-types (>= 1.16) nokogiri (>= 1.3.3) rack (>= 1.0.0) @@ -70,15 +70,15 @@ GEM columnize (0.3.4) configuration (1.3.1) crack (0.1.8) - cucumber (1.1.0) + cucumber (1.1.3) builder (>= 2.1.2) diff-lcs (>= 1.1.2) - gherkin (~> 2.5.0) + gherkin (~> 2.6.7) json (>= 1.4.6) term-ansicolor (>= 1.0.6) - cucumber-rails (1.1.1) + cucumber-rails (1.2.0) capybara (>= 1.1.1) - cucumber (>= 1.1.0) + cucumber (>= 1.1.1) nokogiri (>= 1.5.0) custom_fields (1.0.0.beta.25) activesupport (~> 3.0.9) @@ -110,7 +110,7 @@ GEM factory_girl_rails (1.2.0) factory_girl (~> 2.1.0) railties (>= 3.0.0) - ffi (1.0.9) + ffi (1.0.11) fog (0.8.2) builder excon (~> 0.6.1) @@ -125,7 +125,7 @@ GEM actionpack (>= 2.3.7) activesupport (>= 2.3.7) i18n (~> 0.4) - gherkin (2.5.2) + gherkin (2.6.8) json (>= 1.4.6) growl-glue (1.0.7) haml (3.1.2) @@ -166,7 +166,7 @@ GEM i18n (>= 0.4.0) mime-types (~> 1.16) treetop (~> 1.4.8) - mime-types (1.16) + mime-types (1.17.2) mimemagic (0.1.8) mimetype-fu (0.1.2) mocha (0.9.12) @@ -248,15 +248,15 @@ GEM archive-tar-minitar (>= 0.5.2) rubycas-client (2.2.1) activesupport - rubyzip (0.9.4) + rubyzip (0.9.5) s3 (0.3.8) proxies (~> 0.2.0) sanitize (2.0.3) nokogiri (>= 1.4.4, < 1.6) sass (3.1.2) - selenium-webdriver (2.8.0) + selenium-webdriver (2.13.0) childprocess (>= 0.2.1) - ffi (>= 1.0.7) + ffi (~> 1.0.9) json_pure rubyzip spork (0.9.0.rc9) diff --git a/features/step_definitions/admin_steps.rb b/features/step_definitions/admin_steps.rb index 42ad9c29..2a85d18b 100644 --- a/features/step_definitions/admin_steps.rb +++ b/features/step_definitions/admin_steps.rb @@ -7,18 +7,18 @@ end Given /^I am an authenticated "([^"]*)"$/ do |role| @member = Site.first.memberships.where(:role => role.downcase).first || FactoryGirl.create(role.downcase.to_sym, :site => Site.first) - Given %{I go to login} - And %{I fill in "Email" with "#{@member.account.email}"} - And %{I fill in "Password" with "easyone"} - And %{I press "Log in"} + step %{I go to login} + step %{I fill in "Email" with "#{@member.account.email}"} + step %{I fill in "Password" with "easyone"} + step %{I press "Log in"} end Given /^I am an authenticated user$/ do - Given %{I am an authenticated "admin"} + step %{I am an authenticated "admin"} end Then /^I should see the access denied message$/ do - Then %{I should see "You are not authorized to access this page"} + step %{I should see "You are not authorized to access this page"} end Then /^I am redirected to "([^\"]*)"$/ do |url| diff --git a/features/step_definitions/current_site_steps.rb b/features/step_definitions/current_site_steps.rb index e2dc0545..abef1b24 100644 --- a/features/step_definitions/current_site_steps.rb +++ b/features/step_definitions/current_site_steps.rb @@ -7,7 +7,7 @@ Then /^I should see the role dropdown on the "([^"]*)" without the "([^"]*)" opt end Then /^I should see the role dropdown on myself$/ do - Then %{I should see the role dropdown on the "#{@member.role}"} + step %{I should see the role dropdown on the "#{@member.role}"} end Then /^I should not see the role dropdown on the "([^"]*)"$/ do |user| @@ -15,7 +15,7 @@ Then /^I should not see the role dropdown on the "([^"]*)"$/ do |user| end Then /^I should not see the role dropdown on myself$/ do - Then %{I should not see the role dropdown on the "#{@member.role}"} + step %{I should not see the role dropdown on the "#{@member.role}"} end Then /^I should not see any role dropdowns$/ do @@ -31,7 +31,7 @@ Then /^I should not see delete on the "([^"]*)"$/ do |role| end Then /^I should not see delete on myself$/ do - Then %{I should not see delete on the "#{@member.role}"} + step %{I should not see delete on the "#{@member.role}"} end Then /^I should not see any delete buttons$/ do @@ -39,5 +39,5 @@ Then /^I should not see any delete buttons$/ do end When /^I select the "([^"]*)" role for the "author" user/ do |role| - Given %{I select "#{role}" from "site[memberships_attributes][2][role]"} + step %{I select "#{role}" from "site[memberships_attributes][2][role]"} end diff --git a/features/step_definitions/has_many_steps.rb b/features/step_definitions/has_many_steps.rb index 4d4e5ce0..45455f41 100644 --- a/features/step_definitions/has_many_steps.rb +++ b/features/step_definitions/has_many_steps.rb @@ -19,7 +19,7 @@ end Then /^I should be able to view a paginaed list of a has many association$/ do # Create models - Given %{I have an "Articles" model which has many "Comments"} + step %{I have an "Articles" model which has many "Comments"} # Create contents article = @parent_model.contents.create!(:slug => 'parent', :body => 'Parent') diff --git a/features/step_definitions/site_steps.rb b/features/step_definitions/site_steps.rb index ee03442a..6746fb14 100644 --- a/features/step_definitions/site_steps.rb +++ b/features/step_definitions/site_steps.rb @@ -14,7 +14,7 @@ Given /^I have the site: "([^"]*)" set up(?: with #{capture_fields})?$/ do |site end Given /^I have a site set up$/ do - Given %{I have the site: "test site" set up} + step %{I have the site: "test site" set up} end Given /^I have a designer and an author$/ do diff --git a/features/step_definitions/web_steps.rb b/features/step_definitions/web_steps.rb index b82f78eb..b7663109 100644 --- a/features/step_definitions/web_steps.rb +++ b/features/step_definitions/web_steps.rb @@ -19,12 +19,12 @@ World(WithinHelpers) # Single-line step scoper When /^(.*) within (.*[^:])$/ do |step, parent| - with_scope(parent) { When step } + with_scope(parent) { step step } end # Multi-line step scoper When /^(.*) within (.*[^:]):$/ do |step, parent, table_or_string| - with_scope(parent) { When "#{step}:", table_or_string } + with_scope(parent) { step "#{step}:", table_or_string } end Given /^(?:|I )am on (.+)$/ do |page_name| @@ -64,7 +64,7 @@ end # When /^(?:|I )fill in the following:$/ do |fields| fields.rows_hash.each do |name, value| - When %{I fill in "#{name}" with "#{value}"} + step %{I fill in "#{name}" with "#{value}"} end end @@ -194,4 +194,4 @@ end Then /^show me the page$/ do save_and_open_page -end \ No newline at end of file +end diff --git a/features/support/env.rb b/features/support/env.rb index efcb084c..a1c12dda 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -12,7 +12,6 @@ require 'cucumber/rails' require 'cucumber/formatter/unicode' # Remove this line if you don't want Cucumber Unicode support require 'cucumber/rails/rspec' require 'cucumber/rails/world' -require 'cucumber/web/tableish' require 'capybara' require 'capybara/rails' @@ -68,4 +67,4 @@ ActionController::Base.allow_rescue = false require File.expand_path(File.dirname(__FILE__) + '/../../spec/support/carrierwave') require File.expand_path(File.dirname(__FILE__) + '/../../spec/support/locomotive') -Locomotive.configure_for_test(true) \ No newline at end of file +Locomotive.configure_for_test(true)