Sha256: c379e81ed4fb26d545264fe9164fab72432bf046243114b09741e34fa9ea1f57

Contents?: true

Size: 302 Bytes

Versions: 2

Compression:

Stored size: 302 Bytes

Contents

require 'spec_helper'

describe HawatelPS::HawatelPSException do
  it 'catch exception' do
    expect {
      begin
        100 / 0
      rescue => ex
        raise HawatelPS::HawatelPSException.new({:exception => ex})
      end
    }.to raise_error(HawatelPS::HawatelPSException)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hawatel_ps-0.1.2 spec/shared/hawatelps_exception_spec.rb
hawatel_ps-0.1.1 spec/shared/hawatelps_exception_spec.rb