features/step_definitions/web_steps.rb in kt-paperclip-5.4.0 vs features/step_definitions/web_steps.rb in kt-paperclip-6.2.0

- old
+ new

@@ -16,13 +16,12 @@ # * http://benmabey.com/2008/05/19/imperative-vs-declarative-scenarios-in-user-stories.html # * http://dannorth.net/2011/01/31/whose-domain-is-it-anyway/ # * http://elabs.se/blog/15-you-re-cuking-it-wrong # - -require 'uri' -require 'cgi' +require "uri" +require "cgi" require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths")) require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "selectors")) module WithinHelpers def with_scope(locator) @@ -56,15 +55,15 @@ When /^(?:|I )follow "([^"]*)"$/ do |link| click_link(link) end When /^(?:|I )fill in "([^"]*)" with "([^"]*)"$/ do |field, value| - fill_in(field, :with => value) + fill_in(field, with: value) end When /^(?:|I )fill in "([^"]*)" for "([^"]*)"$/ do |value, field| - fill_in(field, :with => value) + fill_in(field, with: value) end # Use this to fill in an entire form with data from a table. Example: # # When I fill in the following: @@ -81,10 +80,10 @@ When %{I fill in "#{name}" with "#{value}"} end end When /^(?:|I )select "([^"]*)" from "([^"]*)"$/ do |value, field| - select(value, :from => field) + select(value, from: field) end When /^(?:|I )check "([^"]*)"$/ do |field| check(field) end