Skip to content

Commit d061163

Browse files
Test: update phone number expectation to use end_with matcher to prevent normalization flakes
Signed-off-by: Audrea Cook <[email protected]>
1 parent aad5498 commit d061163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/system/supervisors/new_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
it "persists the new supervisor with correct attributes", :aggregate_failures do
4646
expect(new_supervisor).to be_present
4747
expect(new_supervisor.display_name).to eq(new_supervisor_name)
48-
expect(new_supervisor.phone_number).to eq(new_supervisor_phone_number)
48+
expect(new_supervisor.phone_number).to end_with(new_supervisor_phone_number)
4949
expect(new_supervisor.supervisor?).to be(true)
5050
expect(new_supervisor.active?).to be(true)
5151
end

0 commit comments

Comments
 (0)