Sha256: 2b5d481e5eda749d3d2447cf6845307cf732cb579e2b140ebac90f9928f36cd1

Contents?: true

Size: 507 Bytes

Versions: 1

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

require "rails_helper"

RSpec.describe "Auth log out", type: :feature do
  describe "while logged in" do
    before { stub_authorization! }

    it "signs out successfully" do
      visit "/backend"

      click_link "Log Out"

      expect(page).to have_content "Signed out successfully"
    end

    it "signs out and redirects to login page" do
      visit "/backend"

      click_link "Log Out"

      expect(page).to have_current_path("/account/login")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.4.0 spec/features/auth/log_out_spec.rb