trabajo-afectivo/spec/system/basic/redirects_spec.rb

27 lines
545 B
Ruby

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
require 'rails_helper'
RSpec.describe 'Unauthenticated redirect', type: :system, authenticated_as: false do
it 'Sessions' do
visit 'system/sessions'
expect_current_route 'login'
end
it 'Profile' do
visit 'profile/linked'
expect_current_route 'login'
end
it 'Ticket' do
visit 'ticket/zoom/1'
expect_current_route 'login'
end
it 'Not existing route' do
visit 'not_existing'
expect_current_route 'not_existing'
end
end