Sha256: 8278aeb55a143cf55cb1dccadab20bd9eec5c4db74fada7927aab8c68da801ec
Contents?: true
Size: 833 Bytes
Versions: 3
Compression:
Stored size: 833 Bytes
Contents
require 'spec_helper' describe AccountsController do describe "routing" do it "recognizes and generates #index" do { :get => "/accounts" }.should route_to(:controller => "accounts", :action => "index") end it "recognizes and generates #show" do { :get => "/accounts/1" }.should route_to(:controller => "accounts", :action => "show", :id => "1") end it "recognizes and generates #edit" do { :get => "/accounts/1/edit" }.should_not be_routable end it "recognizes and generates #create" do { :post => "/accounts" }.should_not be_routable end it "recognizes and generates #update" do { :put => "/accounts/1" }.should_not be_routable end it "recognizes and generates #destroy" do { :delete => "/accounts/1" }.should_not be_routable end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
plutus-0.5.2 | spec/routing/accounts_routing_spec.rb |
plutus-0.5.1 | spec/routing/accounts_routing_spec.rb |
plutus-0.4.2 | spec/routing/accounts_routing_spec.rb |