Sha256: 507f12731064cfaffc059c76a62e737e5a2647cf973fb30abc1471d0afa1b653
Contents?: true
Size: 404 Bytes
Versions: 1
Compression:
Stored size: 404 Bytes
Contents
require "spec_helper" module Nyanko describe ExceptionHandler do context "when Config.raise_error is truthy" do around do |example| origin, Config.raise_error = Config.raise_error, true example.run Config.raise_error = origin end it "raises up error" do expect { described_class.handle(Exception.new) }.to raise_error end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nyanko-0.0.6 | spec/nyanko/exception_handler_spec.rb |