Sha256: e6816f556d02cce684edc9bfb086b7721cfea55d96c0bbdbe0d2b4500306f0db

Contents?: true

Size: 869 Bytes

Versions: 3

Compression:

Stored size: 869 Bytes

Contents

require 'spec_helper'

describe TransactionsController do
  describe "routing" do
    it "recognizes and generates #index" do
      { :get => "/transactions" }.should route_to(:controller => "transactions", :action => "index")
    end

    it "recognizes and generates #show" do
      { :get => "/transactions/1" }.should route_to(:controller => "transactions", :action => "show", :id => "1")
    end

    it "recognizes and generates #edit" do
      { :get => "/transactions/1/edit" }.should_not be_routable
    end

    it "recognizes and generates #create" do
      { :post => "/transactions" }.should_not be_routable
    end

    it "recognizes and generates #update" do
      { :put => "/transactions/1" }.should_not be_routable
    end

    it "recognizes and generates #destroy" do
      { :delete => "/transactions/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/transactions_routing_spec.rb
plutus-0.5.1 spec/routing/transactions_routing_spec.rb
plutus-0.4.2 spec/routing/transactions_routing_spec.rb