Commit 6d2ed283 authored by Robert Hunt's avatar Robert Hunt

Changed tests to use let_it_be rather than let!

parent c914e341
...@@ -106,8 +106,8 @@ RSpec.describe 'Admin::AuditLogs', :js do ...@@ -106,8 +106,8 @@ RSpec.describe 'Admin::AuditLogs', :js do
let_it_be(:audit_event_1) { create(:user_audit_event, created_at: 5.days.ago) } let_it_be(:audit_event_1) { create(:user_audit_event, created_at: 5.days.ago) }
let_it_be(:audit_event_2) { create(:user_audit_event, created_at: 3.days.ago) } let_it_be(:audit_event_2) { create(:user_audit_event, created_at: 3.days.ago) }
let_it_be(:audit_event_3) { create(:user_audit_event, created_at: 1.day.ago) } let_it_be(:audit_event_3) { create(:user_audit_event, created_at: 1.day.ago) }
let!(:events_path) { :admin_audit_logs_path } let_it_be(:events_path) { :admin_audit_logs_path }
let!(:entity) { nil } let_it_be(:entity) { nil }
it_behaves_like 'audit events date filter' it_behaves_like 'audit events date filter'
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment