spec/errors_spec.rb in vtools-0.0.3 vs spec/errors_spec.rb in vtools-0.1.0
- old
+ new
@@ -7,33 +7,41 @@
#ProcessError
describe VTools do
# specs
+ context "#VToolsError" do
+
+ it "valid exception tree" do
+ expect { raise VTools::Error }.to raise_error Exception
+ end
+ end
+
+ # specs
context "#ConfigError" do
it "valid exception tree" do
- expect { raise VTools::ConfigError }.to raise_error ArgumentError
+ expect { raise VTools::ConfigError }.to raise_error VTools::Error
end
end
context "#FileError" do
it "valid exception tree" do
- expect { raise VTools::FileError }.to raise_error Errno::ENOENT
+ expect { raise VTools::FileError }.to raise_error VTools::Error
end
end
context "#FormatError" do
it "valid exception tree" do
- expect { raise VTools::FormatError }.to raise_error IOError
+ expect { raise VTools::FormatError }.to raise_error VTools::Error
end
end
context "#ProcessError" do
it "valid exception tree" do
- expect { raise VTools::ProcessError }.to raise_error IOError
+ expect { raise VTools::ProcessError }.to raise_error VTools::Error
end
end
end