summaryrefslogtreecommitdiff
path: root/spec/routing/route_routing_spec.rb
blob: e7606e48f195c8004002e4c1e08cea094c4350b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require "rails_helper"

describe "root route" do
  it "routes to the login page" do
    expect(get: "/").to route_to(controller: "sessions", action: "new")
  end
end

describe "terms route" do
  it "routes to the terms and conditions page" do
    expect(get: "/terms").
      to route_to(controller: "static_pages", action: "terms")
  end
end