Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added a wee tweak to the spec

  • Loading branch information...
commit 3db53b0270e88f99ee352581e6acf0ac08cf0bce 1 parent 6611531
@andyferra andyferra authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 spec/artifice_spec.rb
View
5 spec/artifice_spec.rb
@@ -170,13 +170,12 @@
end
it "deactivates even if an exception is raised from within the block" do
- begin
+ lambda {
Artifice.activate_with( lambda {} ) do
::Net::HTTP.should == Artifice::Net::HTTP
raise 'Boom!'
end
- rescue
- end
+ }.should raise_error
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.