title: Trying to change Ruby Cucumber Transforms Code to Cucumber 3.0.0 Replacement
body: <p>I recently found this old project for setting up ruby, cucumber, and capybara on this page:  <a href="https://github.com/jonathanchrisp/capybara-cucumber-ruby-kickstarter" rel="nofollow noreferrer">jonathanchrisp/capybara-cucumber-ruby-kickstarter</a></p>
  
  <p>I was able to fix some runtime errors by adding the following line in support/env.rb</p>
  
  <pre><code>require 'capybara/dsl'
  </code></pre>
  
  <p>However, whenever I run "cucumber" to run the code, it always fails with </p>
  
  <pre><code>undefined method `open_google_maps' for "google maps":String (NoMethodError)
  </code></pre>
  
  <p>I think the problem is that the "Transforms" code in features/step_definitions/transforms.rb was deprecated in cucumber 3.0.0.  The code I am looking at is over 3 years old so I am not sure if the original author will still maintain it.  I did reach out to him.  In the meantime, I was wondering if there is a Rub/Cucumber expert who can tell me what is the proper way to change the old transform code from:</p>
  
  <pre><code>Transform(/^google maps$/) do |impersonator|
    google_maps
  end
  
  Transform(/^the user$/) do |impersonator|
    @current_user
  end
  
  Transform(/^a anonymous user$/) do |impersonator|
    a_anonymous_user
  end
  </code></pre>
  
  <p>to something that works in cucumber 3.0.0 and later.</p>