Skip to content

Commit cddcf33

Browse files
committed
rebase fixes
1 parent 84e22c3 commit cddcf33

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

spec/factories/case_contacts.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
active # use the `:active` enum trait
1313
association :creator, factory: :user
1414
casa_case
15-
contact_types { [association(:contact_type)] }
1615

1716
contact_types { [association(:contact_type)] }
1817
duration_minutes { 60 }

spec/models/case_contact_spec.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,6 @@
132132
expect(obj).not_to be_valid
133133
expect(obj.errors.full_messages).to include("Must enter miles driven to receive driving reimbursement.")
134134
end
135-
136-
it "requires a case to be selected" do
137-
obj = build_stubbed(:case_contact, :expenses_status, :wants_reimbursement, draft_case_ids: [])
138-
expect(obj).not_to be_valid
139-
expect(obj.errors.full_messages).to include("CASA Case must be selected")
140-
end
141135
end
142136

143137
describe "#update_cleaning_contact_types" do

spec/system/case_contacts/new_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require "rails_helper"
2-
require "action_view"
32

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

9291
expect { click_on "Submit" }.to not_change(CaseContact.active, :count)
93-
expect(page).to have_text("Contact Type(s) must be selected")
92+
expect(page).to have_text("Contact Type must be selected")
9493
check contact_types.first.name
9594
expect { click_on "Submit" }.to change(CaseContact.active, :count).by(1)
9695
end

0 commit comments

Comments
 (0)