Permalink
Browse files

Add helper for status setting.

  • Loading branch information...
1 parent 29190c8 commit ac2a0f77cbcd09536aa7e7190519944044c83152 @piotrmurach committed Jun 30, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 spec/spec_helper.rb
View
@@ -35,6 +35,10 @@ def mock_app(app=nil, &block)
def with_headers(headers)
proc { [200, {'Content-Type' => 'text/plain' }.merge(headers), ['ok']] }
end
+
+ def with_status(status=nil)
+ proc { [status || 200, {'Content-Type' => 'text/plain' }, ['ok']] }
+ end
end
RSpec.configure do |config|

0 comments on commit ac2a0f7

Please sign in to comment.