Skip to content

Commit

Permalink
fix to draft method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie committed Feb 4, 2025
1 parent 73357f3 commit e09b2f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/claims/claim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ def total_clawback_amount
end

def in_draft?
return true if status.nil?

DRAFT_STATUSES.include?(status.to_sym)
end

Expand Down
2 changes: 2 additions & 0 deletions spec/policies/claims/claim_policy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@
end

context "when the user has a payment information requested claim" do
let(:support_user) { create(:claims_support_user) }

it "denies access" do
expect(claim_policy).not_to permit(support_user, submitted_claim)
end
Expand Down

0 comments on commit e09b2f5

Please sign in to comment.