spec/no_db/blueprints_spec.rb in blueprints-0.7.3 vs spec/no_db/blueprints_spec.rb in blueprints-0.8.0

- old
+ new

@@ -21,6 +21,25 @@ it "big cherry should have size of 10 even if it was changed in test above" do @big_cherry.size.should == 10 @big_cherry.size = 13 end end -end \ No newline at end of file + + describe "build per describe" do + build_blueprint :cherry + + it "should have cherry" do + @cherry.should_not be_nil + end + + it "should have correct cherry species" do + @cherry.species.should == 'cherry' + end + end + + it "should allow shortened forms of blueprint for any type of object" do + build :apple + @apple.should_not be_nil + @apple.species.should == 'apple' + @apple.size.should == 3 + end +end