Skip to content

Commit 1ee7af9

Browse files
Speed test setup by building instead of creating a factory
And since there's only one context, there's no need to keep
1 parent ee8ab93 commit 1ee7af9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/system/volunteers/notes/edit_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
RSpec.describe "volunteers/notes/edit", type: :system do
44
let(:organization) { create(:casa_org) }
5-
let(:admin) { create(:casa_admin, casa_org_id: organization.id) }
5+
let(:admin) { build(:casa_admin, casa_org_id: organization.id) }
66
let(:volunteer) { create(:volunteer, :with_assigned_supervisor, casa_org_id: organization.id) }
77
let(:note) { volunteer.notes.create(creator: admin, content: "Good job.") }
88

0 commit comments

Comments
 (0)