spec/choice_spec.rb in bindata-0.11.1 vs spec/choice_spec.rb in bindata-1.0.0

- old
+ new

@@ -18,15 +18,15 @@ lambda { BinData::Choice.new(args) }.should raise_error(ArgumentError) end it "should fail if a given type is unknown" do args = {:choices => [:does_not_exist], :selection => 0} - lambda { BinData::Choice.new(args) }.should raise_error(TypeError) + lambda { BinData::Choice.new(args) }.should raise_error(BinData::UnknownTypeError) end it "should fail if a given type is unknown" do args = {:choices => {0 => :does_not_exist}, :selection => 0} - lambda { BinData::Choice.new(args) }.should raise_error(TypeError) + lambda { BinData::Choice.new(args) }.should raise_error(BinData::UnknownTypeError) end it "should fail if :choices Hash has a symbol as key" do args = {:choices => {:a => :example_single}, :selection => 0} lambda { BinData::Choice.new(args) }.should raise_error(ArgumentError)