spec/arguments_spec.rb in progress_bar-1.0.1 vs spec/arguments_spec.rb in progress_bar-1.0.2
- old
+ new
@@ -28,7 +28,13 @@
bar = ProgressBar.new(123, :bar, :eta)
bar.max.should == 123
bar.meters.should == [:bar, :eta]
end
+ it "should raise an error when initial max is nonsense" do
+ lambda {
+ bar = ProgressBar.new(0)
+ }.should raise_error(ProgressBar::ArgumentError)
+ end
+
end