Permalink
Browse files

fix broken exception message match

  • Loading branch information...
1 parent b0e36fb commit 19518b52aac4d9904ff4c3874b0e65c10d1a7f61 @danielsdeleo danielsdeleo committed Aug 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 features/steps/response_steps.rb
@@ -11,7 +11,7 @@
when 200
self.api_response.code.should == 200
when 400
- Then "I should get a 'Bad Request' exception"
+ self.exception.to_s.should match(/(Bad Request|400)/)
when 404
Then "I should get a 'RestClient::ResourceNotFound' exception"
end

0 comments on commit 19518b5

Please sign in to comment.