# RSpec - should\_raise method?

**URL:** <https://www.ruby-forum.com/t/rspec-should-raise-method/50479>\
**Category:** Ruby\
**Created:** [December 16, 2005, 8:28pm UTC](https://www.ruby-forum.com/t/rspec-should-raise-method/50479 "2005-12-16T20:28:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bct](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/6a8cbe/32.png) [@bct](https://www.ruby-forum.com/u/bct)\
**Post date:** [December 16, 2005, 8:28pm UTC](https://www.ruby-forum.com/t/rspec-should-raise-method/50479/1 "2005-12-16T20:28:36Z")

</div>

Hello,

Does RSpec provide a way to check if an exception gets raised?  
I would expect a method named should\_raise, but I cant find it.

Something like the following should work in the specs, but a method  
should  
be added.

should do  
begin  
call\_method  
false  
rescue  
true  
end  
end
