spec/model_spec.rb in rb-libsvm-1.3.1 vs spec/model_spec.rb in rb-libsvm-1.4.0
- old
+ new
@@ -68,9 +68,13 @@
it "can be loaded" do
expect(Model.load(@filename)).to be_an_instance_of(Model)
end
+ it "missing model raises exception" do
+ expect{Model.load("missing.model")}.to raise_error(IOError, /unable to load model from file: "missing.model"/)
+ end
+
after(:each) do
File.delete(@filename) rescue nil
end
end