B
Brian Takita
------=_Part_12554_13728394.1134761150178
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
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
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
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