fixtures/files/features/support/paths.rb in dragonfly-0.6.2 vs fixtures/files/features/support/paths.rb in dragonfly-0.7.0
- old
+ new
@@ -1,9 +1,11 @@
module NavigationHelpers
def path_to(page_name)
case page_name
when "the new album page"
'/albums/new'
+ when /^the image for text "(.+)", size "(.+)"$/
+ "/text/#{$1}/#{$2}"
else
raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
"Now, go and add a mapping in #{__FILE__}"
end
end