|
|
|
@ -139,6 +139,7 @@ RSpec.describe User, type: :model do
|
|
|
|
|
it "can filter case logs by user, year, status and organisation" do |
|
|
|
|
expect(user.case_logs_filters).to eq(%w[status years user organisation]) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "when the user is in development environment" do |
|
|
|
|
before do |
|
|
|
@ -150,7 +151,6 @@ RSpec.describe User, type: :model do
|
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe "paper trail" do |
|
|
|
|
let(:user) { FactoryBot.create(:user) } |
|
|
|
|