Sha256: 3794d34b5454fd4bc58ee0cd38f66dc900ab3b11310df4eb7b98997739ec4aa8
Contents?: true
Size: 394 Bytes
Versions: 16
Compression:
Stored size: 394 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+') expect(path_to(page)).to match(/#{regexp}/) end When(/^I go to (.+)$/) do |page| visit path_to(page) end Then(/^I should be at (.+)$/) do |page| expect(current_url).to match(/#{path_to(page)}/) end
Version data entries
16 entries across 16 versions & 2 rubygems