Sha256: 206ffd312a1bc30860551e01f6f3147f6cdd4a770a859b9a629eb35536aaa83c

Contents?: true

Size: 963 Bytes

Versions: 2

Compression:

Stored size: 963 Bytes

Contents

require "spec_helper"

module Stachio
  describe TemplatesController do
    describe "routing" do

      it "routes to #index" do
        get("/templates").should route_to("stachio/templates#index")
      end

      it "routes to #new" do
        get("/templates/new").should route_to("stachio/templates#new")
      end

      it "routes to #show" do
        get("/templates/1").should route_to("stachio/templates#show", :id => "1")
      end

      it "routes to #edit" do
        get("/templates/1/edit").should route_to("stachio/templates#edit", :id => "1")
      end

      it "routes to #create" do
        post("/templates").should route_to("stachio/templates#create")
      end

      it "routes to #update" do
        put("/templates/1").should route_to("stachio/templates#update", :id => "1")
      end

      it "routes to #destroy" do
        delete("/templates/1").should route_to("stachio/templates#destroy", :id => "1")
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stachio-0.0.2 spec/routing/stachio/templates_routing_spec.rb
stachio-0.0.1 spec/routing/stachio/templates_routing_spec.rb