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

Version Path
pickle-0.9.0 features/step_definitions/path_steps.rb
pickle-0.8.0 features/step_definitions/path_steps.rb
pickle-0.7.2 features/step_definitions/path_steps.rb
pickle-0.7.1 features/step_definitions/path_steps.rb
pickle-0.7.0 features/step_definitions/path_steps.rb
pickle-0.6.2 features/step_definitions/path_steps.rb
pickle-0.6.1 features/step_definitions/path_steps.rb
pickle-0.6.0 features/step_definitions/path_steps.rb
pickle-0.5.5 features/step_definitions/path_steps.rb
pickle-0.5.4 features/step_definitions/path_steps.rb
pickle-0.5.3 features/step_definitions/path_steps.rb
pickle-0.5.2 features/step_definitions/path_steps.rb
spbtv_pickle-0.5.2 features/step_definitions/path_steps.rb
spbtv_pickle-0.5.1 features/step_definitions/path_steps.rb
pickle-0.5.1 features/step_definitions/path_steps.rb
pickle-0.5.0 features/step_definitions/path_steps.rb