summaryrefslogtreecommitdiff
path: root/test/integration/browser/session_test.rb
blob: fb20847288499296b5e5cdf4dffbdad8f86e92c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'test_helper'

class SessionTest < BrowserIntegrationTest

  test "valid session" do
    login
    assert page.has_content?("Logout")
  end

  test "expired session" do
    login
    pretend_now_is(Time.now + 80.minutes) do
      visit '/'
      assert page.has_content?("Log In")
    end
  end
end