describe 'routes for DashboardController' do
  describe '#auth_error' do
    it 'routes with GET' do
      expect(get('/dashboard/auth_error')).to route_to('dashboard#auth_error')
    end
  end

  describe "#change_tab" do
    it "routes with GET" do
      expect(get("/dashboard/change_tab")).to route_to("dashboard#change_tab")
    end
  end

  describe '#index' do
    it 'routes with GET' do
      expect(get('/dashboard')).to route_to('dashboard#index')
    end
  end

  describe "#login" do
    it "routes with GET" do
      expect(get("/dashboard/login")).to route_to("dashboard#login")
    end
  end

  describe "#logout" do
    it "routes with GET" do
      expect(get("/dashboard/logout")).to route_to("dashboard#logout")
    end
  end

  describe "#render_csv" do
    it "routes with GET" do
      expect(get("/dashboard/render_chart")).to route_to("dashboard#render_chart")
    end
  end

  describe "#render_csv" do
    it "routes with GET" do
      expect(get("/dashboard/render_csv")).to route_to("dashboard#render_csv")
    end
  end

  describe "#render_pdf" do
    it "routes with GET" do
      expect(get("/dashboard/render_pdf")).to route_to("dashboard#render_pdf")
    end
  end

  describe "#render_txt" do
    it "routes with GET" do
      expect(get("/dashboard/render_txt")).to route_to("dashboard#render_txt")
    end
  end

  describe "#report_only" do
    it "routes with GET" do
      expect(get("/dashboard/report_only")).to route_to("dashboard#report_only")
    end
  end

  describe "#report_only" do
    it "routes with GET" do
      expect(get("/dashboard/report_only")).to route_to("dashboard#report_only")
    end
  end

  describe "#show" do
    it "routes with GET" do
      expect(get("/dashboard/show")).to route_to("dashboard#show")
    end
  end

  describe "#timeline_data" do
    it "routes with GET" do
      expect(get("/dashboard/timeline_data")).to route_to("dashboard#timeline_data")
    end

    it "routes with POST" do
      expect(post("/dashboard/timeline_data")).to route_to("dashboard#timeline_data")
    end
  end

  describe "#widget_to_pdf" do
    it "routes with GET" do
      expect(get("/dashboard/widget_to_pdf")).to route_to("dashboard#widget_to_pdf")
    end
  end

  describe "#authenticate" do
    it "routes with POST" do
      expect(post("/dashboard/authenticate")).to route_to("dashboard#authenticate")
    end
  end

  describe "#change_group" do
    it "routes with POST" do
      expect(post("/dashboard/change_group")).to route_to("dashboard#change_group")
    end
  end

  describe "#csp_report" do
    it "routes with POST" do
      expect(post("/dashboard/csp_report")).to route_to("dashboard#csp_report")
    end
  end

  describe "#login_retry" do
    it "routes with POST" do
      expect(post("/dashboard/login_retry")).to route_to("dashboard#login_retry")
    end
  end

  describe "#reset_widgets" do
    it "routes with POST" do
      expect(post("/dashboard/reset_widgets")).to route_to("dashboard#reset_widgets")
    end
  end

  describe "#tree_select" do
    it "routes with POST" do
      expect(post("/dashboard/tree_select")).to route_to("dashboard#tree_select")
    end
  end

  describe "#wait_for_task" do
    it "routes with POST" do
      expect(post("/dashboard/wait_for_task")).to route_to("dashboard#wait_for_task")
    end
  end

  describe "#widget_add" do
    it "routes with POST" do
      expect(post("/dashboard/widget_add")).to route_to("dashboard#widget_add")
    end
  end

  describe "#widget_close" do
    it "routes with POST" do
      expect(post("/dashboard/widget_close")).to route_to("dashboard#widget_close")
    end
  end

  describe "#widget_dd_done" do
    it "routes with POST" do
      expect(post("/dashboard/widget_dd_done")).to route_to("dashboard#widget_dd_done")
    end
  end
end
