Sha256: 676472d2b19525e27649fe0af9189c5c2733d8a3aae7157b59c32cb9b8cc48d3
Contents?: true
Size: 377 Bytes
Versions: 7
Compression:
Stored size: 377 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths")) Then(/^(.+?) should match route \/(.+?)$/) do |page, route| regexp = route.gsub(/:(\w*?)id/,'\d+') path_to(page).should =~ /#{regexp}/ end When(/^I go to (.+)$/) do |page| visit path_to(page) end Then(/^I should be at (.+)$/) do |page| current_url.should =~ /#{path_to(page)}/ end
Version data entries
7 entries across 7 versions & 1 rubygems