Sha256: 9c2b30616546c86283a76702edcc6541a8c0b54a105d2fdf9a0b736530d2a077

Contents?: true

Size: 1.51 KB

Versions: 27

Compression:

Stored size: 1.51 KB

Contents

require "rails_helper"

describe ::Dorsale::Flyboy::TasksController, type: :routing do
  describe "routing" do
    routes { ::Dorsale::Engine.routes }

    it "routes to #index" do
      expect(get("flyboy/tasks")).to route_to("dorsale/flyboy/tasks#index")
    end

    it "routes to #summary" do
      expect(get("flyboy/tasks/summary")).to route_to("dorsale/flyboy/tasks#summary")
    end

    it "routes to #new" do
      expect(get("flyboy/tasks/new")).to route_to("dorsale/flyboy/tasks#new")
    end

    it "routes to #show" do
      expect(get("flyboy/tasks/1")).to route_to("dorsale/flyboy/tasks#show", id: "1")
    end

    it "routes to #edit" do
      expect(get("flyboy/tasks/1/edit")).to route_to("dorsale/flyboy/tasks#edit", id: "1")
    end

    it "routes to #create" do
      expect(post("flyboy/tasks")).to route_to("dorsale/flyboy/tasks#create")
    end

    it "routes to #update" do
      expect(patch("flyboy/tasks/1")).to route_to("dorsale/flyboy/tasks#update", id: "1")
    end

    it "routes to #complete" do
      expect(patch("flyboy/tasks/1/complete")).to route_to("dorsale/flyboy/tasks#complete", id: "1")
    end

    it "routes to #snooze" do
      expect(patch("flyboy/tasks/1/snooze")).to route_to("dorsale/flyboy/tasks#snooze", id: "1")
    end

    it "routes to #destroy" do
      expect(delete("flyboy/tasks/1")).to route_to("dorsale/flyboy/tasks#destroy", id: "1")
    end

    it "routes to #copy" do
      expect(get("flyboy/tasks/1/copy")).to route_to("dorsale/flyboy/tasks#copy", id: "1")
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
dorsale-4.0.0 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.20.0 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.19.1 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.19.0 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.18.0 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.17.0 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.16.0 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.15.0 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.14.11 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.14.10 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.14.9 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.14.8 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.14.7 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.14.6 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.14.5 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.14.3 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.14.2 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.14.1 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.14.0 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.13.0 spec/routing/dorsale/flyboy/tasks_routing_spec.rb