Skip to content

Commit

Permalink
Adjust GitHub links to Spreewald files in the error message of _path_…
Browse files Browse the repository at this point in the history
…to and _selector_for
  • Loading branch information
makmic committed Jun 14, 2019
1 parent cbe540a commit 0382789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/spreewald_support/path_selector_fallbacks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def _selector_for(locator)
$1
else
raise "Can't find mapping from \"#{locator}\" to a selector.\n" +
"Add and require a selectors.rb file (compare #{Spreewald.github_url}/examples/selectors.rb)"
"Add and require a selectors.rb file (compare #{Spreewald.github_url}/blob/master/examples/selectors.rb)"
end
end

Expand All @@ -22,7 +22,7 @@ def _path_to(page_name)
self.send(path_components.push('path').join('_').to_sym)
rescue NoMethodError, ArgumentError
raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
"Add and require a paths.rb file (compare #{Spreewald.github_url}/examples/paths.rb)"
"Add and require a paths.rb file (compare #{Spreewald.github_url}/blob/master/examples/paths.rb)"
end
end
end
Expand Down

0 comments on commit 0382789

Please sign in to comment.