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.4.4 features/step_definitions/path_steps.rb
judit-pickle-0.4.2 features/step_definitions/path_steps.rb
pickle-0.4.3 features/step_definitions/path_steps.rb
pickle-has_many_support-0.4.2 features/step_definitions/path_steps.rb
pickle-0.4.2 features/step_definitions/path_steps.rb
pickle-0.4.1 features/step_definitions/path_steps.rb
pickle-0.4.0 features/step_definitions/path_steps.rb
pickle-0.3.5 features/step_definitions/path_steps.rb
pickle-0.3.4 features/step_definitions/path_steps.rb
pickle-0.3.3 features/step_definitions/path_steps.rb
pickle-0.3.2 features/step_definitions/path_steps.rb
pickle-0.3.1 features/step_definitions/path_steps.rb
pickle-has_many_support-0.3.1 features/step_definitions/path_steps.rb
pickle-0.3.0 features/step_definitions/path_steps.rb
pickle-0.2.12 features/step_definitions/path_steps.rb
pickle-0.2.11 features/step_definitions/path_steps.rb
pickle-0.2.10 features/step_definitions/path_steps.rb
pickle-0.2.9 features/step_definitions/path_steps.rb
pickle-dupe-0.2.2 features/step_definitions/path_steps.rb
pickle-0.2.8 features/step_definitions/path_steps.rb