rspec-rails

https://github.com/rspec/rspec-rails

Ruby

RSpec for Rails 5+

RSpec::Rails::Matchers::RoutingMatchers#be_routable

Passes if the route expression is recognized by the Rails router based on
the declarations in `config/routes.rb`. Delegates to
`RouteSet#recognize_path`.

Source | Google | Stack overflow

Edit

git clone [email protected]:rspec/rspec-rails.git

cd rspec-rails

open lib/rspec/rails/matchers/routing_matchers.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-RSpec--Rails--Matchers--RoutingMatchers-be_routable-for-pr


# Commit to git

git add lib/rspec/rails/matchers/routing_matchers.rbgit commit -m "better docs for RSpec::Rails::Matchers::RoutingMatchers#be_routable"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-RSpec--Rails--Matchers--RoutingMatchers-be_routable-for-pr

hub pull-request


# Celebrate!