|
|
@ -2,7 +2,7 @@ require "rails_helper" |
|
|
|
|
|
|
|
|
|
|
|
RSpec.describe "Log Features" do |
|
|
|
RSpec.describe "Log Features" do |
|
|
|
context "when searching for specific logs" do |
|
|
|
context "when searching for specific logs" do |
|
|
|
context "when I am logged in and there are logs in the database" do |
|
|
|
context "when I am signed in and there are logs in the database" do |
|
|
|
let(:user) { FactoryBot.create(:user, last_sign_in_at: Time.zone.now) } |
|
|
|
let(:user) { FactoryBot.create(:user, last_sign_in_at: Time.zone.now) } |
|
|
|
let!(:log_to_search) { FactoryBot.create(:case_log, owning_organisation: user.organisation) } |
|
|
|
let!(:log_to_search) { FactoryBot.create(:case_log, owning_organisation: user.organisation) } |
|
|
|
let!(:same_organisation_log) { FactoryBot.create(:case_log, owning_organisation: user.organisation) } |
|
|
|
let!(:same_organisation_log) { FactoryBot.create(:case_log, owning_organisation: user.organisation) } |
|
|
|