rspec-rails-extra-routing 0.1.0
Extension to rspec-rails that allows some shortcuts in routing tests. With it, this: describe "users routes" do describe "GET /" do it{{:get => '/'}.should route_to "users#index"} end describe "POST /" do it{{:post => '/'}.should be_routable} end end can be written like this: describe "users routes" do get('/').should route_to "users#index" post('/').should be_routable end
Gemfile:
=
Copy to clipboard
Copied!
install:
=
Runtime Dependencies (1):
rspec-rails
>= 2.5.0