Permalink
Browse files

ExitError nonsense

  • Loading branch information...
jthornber committed Mar 14, 2012
1 parent 9ae5bf5 commit 8742342552f794ba336640b00580b434b7fd2c53
Showing with 4 additions and 4 deletions.
  1. +4 −4 prelude_tests.rb
View
@@ -21,7 +21,7 @@ def test_bracket_normal_path
def test_bracket_fail_path
tidied = false
- assert_raise(ExitError, 'bang!') do
+ assert_raise(RuntimeError, 'bang!') do
bracket(5, lambda {|n| tidied = true}) do |n|
raise RuntimeError, 'bang!'
end
@@ -57,7 +57,7 @@ def test_bracket__normal_path
def test_bracket__fail
tidied = false
- assert_raise(ExitError, 'bang!') do
+ assert_raise(RuntimeError, 'bang!') do
v = bracket_(lambda {tidied = true}) do
raise RuntimeError, 'bang!'
end
@@ -78,7 +78,7 @@ def test_protect_normal_path
def test_protect_fail_path
tidied = false
- assert_raise(ExitError, 'bang!') do
+ assert_raise(RuntimeError, 'bang!') do
v = protect(5, lambda {|n| tidied = true}) do |n|
raise RuntimeError, 'bang!'
end
@@ -99,7 +99,7 @@ def test_protect__normal_path
def test_protect__fail_path
tidied = false
- assert_raise(ExitError, 'bang!') do
+ assert_raise(RuntimeError, 'bang!') do
v = protect_(lambda {tidied = true}) do
raise RuntimeError, 'bang!'
end

0 comments on commit 8742342

Please sign in to comment.