features/support/paths.rb in refinerycms-testing-0.9.9.9 vs features/support/paths.rb in refinerycms-testing-0.9.9.10

- old
+ new

@@ -1,6 +1,6 @@ -::Refinery::Plugins.registered.collect{|p| +::Refinery::Plugins.registered.map{|p| p.pathname.join('features', 'support', 'paths.rb') }.reject{|p| !p.exist?}.each do |paths| require paths end @@ -80,10 +80,10 @@ page_name =~ /the (.*) page/ path_components = $1.split(/\s+/) self.send(path_components.push('path').join('_').to_sym) rescue Object => e raise "Can't find mapping from \"#{page_name}\" to a path.\n" + - "Now, go and add a mapping in #{__FILE__}" + "Now, go and add a mapping in #{Rails.root.join('features', 'support', 'paths.rb')}" end end end end