spec/models/content_spec.rb in alchemy_cms-2.5.0.b9 vs spec/models/content_spec.rb in alchemy_cms-2.5.0.rc3
- old
+ new
@@ -128,7 +128,18 @@
expect { c.ingredient = "Welcome" }.to raise_error
end
end
end
+ describe "#descriptions" do
+
+ context "without any descriptions in elements.yml file" do
+ it "should return an empty array" do
+ Element.stub(:descriptions).and_return([])
+ Content.descriptions.should == []
+ end
+ end
+
+ end
+
end
end