Sha256: 31b3783784c7951ff844e8a160a9f2b0c09ff681b698fbde7a474cd274e4e06b

Contents?: true

Size: 265 Bytes

Versions: 3

Compression:

Stored size: 265 Bytes

Contents

test "catches the right exception" do
  assert_raise(RuntimeError) do
    raise RuntimeError
  end
end


test "raises if the expectation is not met" do
  assert_raise(AssertionFailed) do
    assert_raise(RuntimeError) do
      raise ArgumentError
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cutest-0.0.5 test/assert_raise.rb
cutest-0.0.4 test/assert_raise.rb
cutest-0.0.3 test/assert_raise.rb