From 5d4734b302ffbbb4f48c3e09836e2e546b9a63c9 Mon Sep 17 00:00:00 2001 From: Jon Lemmon Date: Tue, 11 Dec 2012 14:43:20 +1300 Subject: [PATCH] Fix failing spec. --- features/step_definitions/view_group_discussions_steps.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/features/step_definitions/view_group_discussions_steps.rb b/features/step_definitions/view_group_discussions_steps.rb index 570afb6c837..d7bde97011d 100644 --- a/features/step_definitions/view_group_discussions_steps.rb +++ b/features/step_definitions/view_group_discussions_steps.rb @@ -11,10 +11,9 @@ end Given /^a public sub\-group exists$/ do - @parent_group = FactoryGirl.create :group - @sub_group = FactoryGirl.create :group, :parent => @parent_group - @sub_group.viewable_by = :everyone - @sub_group.save + @parent_group = FactoryGirl.create :group, :viewable_by => :everyone + @sub_group = FactoryGirl.create :group, :parent => @parent_group, + :viewable_by => :everyone end Given /^a private sub\-group exists$/ do