From 84c89c15e8ab2c65d1d2fd9d326eede3b1b98a9d Mon Sep 17 00:00:00 2001 From: Hagen Schink Date: Wed, 13 Mar 2013 18:23:12 +0100 Subject: [PATCH] Corrected meeting agenda spec --- spec/models/meeting_agenda_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/meeting_agenda_spec.rb b/spec/models/meeting_agenda_spec.rb index cdc8217ed7..5db4364606 100644 --- a/spec/models/meeting_agenda_spec.rb +++ b/spec/models/meeting_agenda_spec.rb @@ -1,8 +1,7 @@ require 'spec_helper' describe "MeetingAgenda" do - before(:all) do - #@m = FactoryGirl.build :meeting, :title => "dingens" + before(:each) do @a = FactoryGirl.build :meeting_agenda, :text => "Some content...\n\nMore content!\n\nExtraordinary content!!" end @@ -31,6 +30,7 @@ describe "MeetingAgenda" do # a meeting agenda is editable when it is not locked describe "#editable?" do it "is editable when not locked" do + @a.locked = false @a.editable?.should be_true end it "is not editable when locked" do