diff --git a/features/support/paths.rb b/features/support/paths.rb index 18e8db4b204..21c6f9760b7 100644 --- a/features/support/paths.rb +++ b/features/support/paths.rb @@ -31,7 +31,7 @@ def path_to(page_name) path_components = $1.split(/\s+/) self.send(path_components.push('path').join('_').to_sym) rescue NoMethodError, ArgumentError - raise "Can't find mapping from \"#{page_name}\" to a path.\n" + + raise "Can't find mapping from #{page_name.dump} to a path.\n" + "Now, go and add a mapping in #{__FILE__}" end end diff --git a/features/support/selectors.rb b/features/support/selectors.rb index 44e34a487bf..da19495d0fc 100644 --- a/features/support/selectors.rb +++ b/features/support/selectors.rb @@ -30,7 +30,7 @@ def selector_for(locator) $1 else - raise "Can't find mapping from \"#{locator}\" to a selector.\n" + + raise "Can't find mapping from #{locator.dump} to a selector.\n" + "Now, go and add a mapping in #{__FILE__}" end end