spec/unit/blueprint_spec.rb in blueprints-0.8.0 vs spec/unit/blueprint_spec.rb in blueprints-0.8.1
- old
+ new
@@ -15,15 +15,10 @@
it "should allow to demolish blueprint" do
@mock.expects(:destroy)
@blueprint.demolish
end
- it "should unset @result after demolish" do
- @blueprint.demolish
- @blueprint.instance_variable_defined?(:@result).should be_false
- end
-
- it "should raise error if @result is not set" do
+ it "should raise error if blueprint is not built" do
@blueprint.demolish
lambda { @blueprint.demolish }.should raise_error(Blueprints::DemolishError)
end
it "should set blueprint as not built" do