Sha256: bbf45e059016c7c177b49f82d2a6d538bc0c025c692be08c9934cb9db8a4f8fc

Contents?: true

Size: 1.08 KB

Versions: 27

Compression:

Stored size: 1.08 KB

Contents

require 'rails_helper'

describe LicensesController do
  describe "routing" do

    it "recognizes and generates #index" do
      { get: "/licenses" }.should route_to(controller: "licenses", action: "index")
    end

    it "recognizes and generates #new" do
      { get: "/licenses/new" }.should route_to(controller: "licenses", action: "new")
    end

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

    it "recognizes and generates #edit" do
      { get: "/licenses/1/edit" }.should route_to(controller: "licenses", action: "edit", id: "1")
    end

    it "recognizes and generates #create" do
      { post: "/licenses" }.should route_to(controller: "licenses", action: "create")
    end

    it "recognizes and generates #update" do
      { put: "/licenses/1" }.should route_to(controller: "licenses", action: "update", id: "1")
    end

    it "recognizes and generates #destroy" do
      { delete: "/licenses/1" }.should route_to(controller: "licenses", action: "destroy", id: "1")
    end

  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
enju_biblio-0.3.18 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.17 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.16 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.15 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.14 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.13 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.12 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.11 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.10 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.10.rc.3 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.10.rc.2 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.10.rc.1 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.9 spec/routing/licenses_routing_spec.rb
enju_biblio-0.4.0.rc.1 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.8 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.7 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.6 spec/routing/licenses_routing_spec.rb
enju_biblio-0.4.0.beta.2 spec/routing/licenses_routing_spec.rb
enju_biblio-0.4.0.beta.1 spec/routing/licenses_routing_spec.rb
enju_biblio-0.3.5 spec/routing/licenses_routing_spec.rb