Sha256: b103573dcb9232afb30da28da149869fd9a796989c9358db61e137edfeaedbf7

Contents?: true

Size: 1.52 KB

Versions: 16

Compression:

Stored size: 1.52 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(patch("flyboy/tasks/1/copy")).to route_to("dorsale/flyboy/tasks#copy", id: "1")
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dorsale-3.9.7 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.9.6 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.9.5 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.9.4 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.9.3 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.9.2 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.9.1 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.9.0 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.8.1 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.8.0 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.7.8 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.7.7 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.7.6 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.7.5 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.7.4 spec/routing/dorsale/flyboy/tasks_routing_spec.rb
dorsale-3.7.2 spec/routing/dorsale/flyboy/tasks_routing_spec.rb