Sha256: 9f1f9f88d3545fd420bd1e49c25a6908182a12243782bed9f0689d94b2af5278
Contents?: true
Size: 378 Bytes
Versions: 43
Compression:
Stored size: 378 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| request.path.should =~ /#{path_to(page)}/ end
Version data entries
43 entries across 43 versions & 5 rubygems