Skip to content

Commit ceaa792

Browse files
committed
Remove :creator trait in conditions_questions_spec
- The removed `:creator` trait was creating an extra user that these tests don't appear to need. `create(:role, :creator, :editor, :commenter, user: @user, plan: @plan)` on line 23 seems to be assigning the intended user as plan.creator.
1 parent bc56752 commit ceaa792

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/features/questions/conditions_questions_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
before(:each) do
88
@user = create(:user)
99
@template = create(:template, :default, :published)
10-
@plan = create(:plan, :creator, template: @template)
10+
@plan = create(:plan, template: @template)
1111
@phase = create(:phase, template: @template)
1212
# 3 sections for ensuring that conditions involve questions in different sections.
1313
@section1 = create(:section, phase: @phase)

0 commit comments

Comments
 (0)