summaryrefslogtreecommitdiff
path: root/test/integration/browser/session_test.rb
blob: d52508aef638815c68dbf0afe4f1658291c321c3 (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?("Log Out")
  end

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