Skip to content

Commit

Permalink
rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thejonroberts committed Sep 26, 2024
1 parent b836f13 commit 74896cb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion spec/factories/case_contacts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
active # use the `:active` enum trait
association :creator, factory: :user
casa_case
contact_types { [association(:contact_type)] }

contact_types { [association(:contact_type)] }
duration_minutes { 60 }
Expand Down
6 changes: 0 additions & 6 deletions spec/models/case_contact_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,6 @@
expect(obj).not_to be_valid
expect(obj.errors.full_messages).to include("Must enter miles driven to receive driving reimbursement.")
end

it "requires a case to be selected" do
obj = build_stubbed(:case_contact, :expenses_status, :wants_reimbursement, draft_case_ids: [])
expect(obj).not_to be_valid
expect(obj.errors.full_messages).to include("CASA Case must be selected")
end
end

describe "#update_cleaning_contact_types" do
Expand Down
3 changes: 1 addition & 2 deletions spec/system/case_contacts/new_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require "rails_helper"
require "action_view"

RSpec.describe "case_contacts/new", :js, type: :system do
let(:casa_org) { create :casa_org }
Expand Down Expand Up @@ -90,7 +89,7 @@
fill_in_contact_details(contact_types: [])

expect { click_on "Submit" }.to not_change(CaseContact.active, :count)
expect(page).to have_text("Contact Type(s) must be selected")
expect(page).to have_text("Contact Type must be selected")
check contact_types.first.name
expect { click_on "Submit" }.to change(CaseContact.active, :count).by(1)
end
Expand Down

0 comments on commit 74896cb

Please sign in to comment.