diff options
Diffstat (limited to 'spec/views/profiles/audit_log.html.haml_spec.rb')
-rw-r--r-- | spec/views/profiles/audit_log.html.haml_spec.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/views/profiles/audit_log.html.haml_spec.rb b/spec/views/profiles/audit_log.html.haml_spec.rb deleted file mode 100644 index d5f6a2d64e7..00000000000 --- a/spec/views/profiles/audit_log.html.haml_spec.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe 'profiles/audit_log' do - let(:user) { create(:user) } - - before do - assign(:user, user) - assign(:events, AuthenticationEvent.all.page(params[:page])) - allow(controller).to receive(:current_user).and_return(user) - end - - context 'when user has successful and failure events' do - before do - create(:authentication_event, :successful, user: user) - create(:authentication_event, :failed, user: user) - end - - it 'only shows successful events' do - render - - expect(rendered).to have_text('Signed in with standard authentication', count: 1) - end - end -end |