require_relative 'web/web_methods' Given(/^I am on "(.*?)"$/) do |url| visit(url) end When(/^I fill in "(.*?)" with "(.*?)"$/) do |element, text| fill_in element, with: text end Then(/^I should see "(.*?)"$/) do |text| page.should have_content text end