Sha256: d8fcbead8da5029565d9158a8e9ce5901f9e391d24028f6291a78a7d76b52c04
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe Machinist, "exceptions" do describe Machinist::BlueprintCantSaveError do it "should present the right message" do blueprint = Machinist::Blueprint.new(String) { } exception = Machinist::BlueprintCantSaveError.new(blueprint) exception.message.should == "make! is not supported by blueprints for class String" end end describe Machinist::NoBlueprintError do it "should present the right message" do exception = Machinist::NoBlueprintError.new(String, :master) exception.message.should == "No master blueprint defined for class String" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
machinist-2.0.0.beta2 | spec/exceptions_spec.rb |
machinist-2.0.0.beta1 | spec/exceptions_spec.rb |