Sha256: ec19762a94d15a94f99195b9edead370741a7d485ef351aa1418b63e18b67079

Contents?: true

Size: 868 Bytes

Versions: 5

Compression:

Stored size: 868 Bytes

Contents

require "spec_helper"
require "errors"

#ConfigError
#FileError
#FormatError
#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 VTools::Error
    end
  end

  context "#FileError" do

    it "valid exception tree" do
      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 VTools::Error
    end
  end

  context "#ProcessError" do

    it "valid exception tree" do
      expect { raise VTools::ProcessError }.to raise_error VTools::Error
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vtools-1.0.2 spec/errors_spec.rb
vtools-1.0.1 spec/errors_spec.rb
vtools-1.0.0 spec/errors_spec.rb
vtools-0.1.1 spec/errors_spec.rb
vtools-0.1.0 spec/errors_spec.rb