Sha256: fda22fe4b6eab2cfc0c0ccbb76dc53934944e1c243b9f596c200a16662be746a
Contents?: true
Size: 928 Bytes
Versions: 29
Compression:
Stored size: 928 Bytes
Contents
require 'spec_helper' require "falkorlib/error" describe FalkorLib::Error do ############################################# context "Test Falkorlib errors" do exceptions = [ FalkorLib::Exit, FalkorLib::FalkorError, FalkorLib::ExecError, FalkorLib::InternalError, FalkorLib::ArgumentError, FalkorLib::AbortError, FalkorLib::TemplateNotFound ] exceptions.each do |e| it "##{e} -- exit code #{exceptions.index(e)}" do expect { raise e }.to raise_error begin raise e rescue StandardError => s i = s.status_code expect(i).to eq(exceptions.index(e)) end end end end end
Version data entries
29 entries across 29 versions & 1 rubygems