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

Version Path
pickle-0.2.7 features/step_definitions/path_steps.rb
pickle-0.2.6 features/step_definitions/path_steps.rb
pickle-dupe-0.2.1 features/step_definitions/path_steps.rb
pickle-0.2.5 features/step_definitions/path_steps.rb
pickle-0.2.4 features/step_definitions/path_steps.rb
pickle-0.2.3 features/step_definitions/path_steps.rb
pickle-dupe-0.2.0 features/step_definitions/path_steps.rb
pickle-0.2.2 features/step_definitions/path_steps.rb
kbaum-pickle-0.2.1.4 features/step_definitions/path_steps.rb
kbaum-pickle-0.2.1.3 features/step_definitions/path_steps.rb
kbaum-pickle-0.2.1.2 features/step_definitions/path_steps.rb
pickle-dupe-0.1.0 features/step_definitions/path_steps.rb
kbaum-pickle-0.2.1.1 features/step_definitions/path_steps.rb
pickle-0.2.1 features/step_definitions/path_steps.rb
pickle-0.2.0 features/step_definitions/path_steps.rb
pickle-0.1.23 features/step_definitions/path_steps.rb
pickle-0.1.22 features/step_definitions/path_steps.rb
pickle-0.1.21 features/step_definitions/path_steps.rb
pickle-0.1.20 features/step_definitions/path_steps.rb
pickle-0.1.19 features/step_definitions/path_steps.rb