spec/models/content_spec.rb in alchemy_cms-2.6.0.rc5 vs spec/models/content_spec.rb in alchemy_cms-2.6.0

- old
+ new

@@ -131,11 +131,12 @@ end describe "#descriptions" do context "without any descriptions in elements.yml file" do + before { Element.stub(:descriptions).and_return([]) } + it "should return an empty array" do - Element.stub(:descriptions).and_return([]) Content.descriptions.should == [] end end end