Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 20 lines (17 sloc) 0.383 kB
0a360fa @gravis minimal unit testing resque-web.
gravis authored
1 require 'rack/test'
2 require 'resque/server'
3
4 module Resque
5 module TestHelper
6 class Test::Unit::TestCase
7 include Rack::Test::Methods
9ef93b5 @mrduncan Cleanup trailing whitespace
mrduncan authored
8 def app
0a360fa @gravis minimal unit testing resque-web.
gravis authored
9 Resque::Server.new
10 end
11
12 def self.should_respond_with_success
13 test "should respond with success" do
db4c4a8 @gravis Display error if last_response is not ok
gravis authored
14 assert last_response.ok?, last_response.errors
9ef93b5 @mrduncan Cleanup trailing whitespace
mrduncan authored
15 end
16 end
0a360fa @gravis minimal unit testing resque-web.
gravis authored
17 end
18 end
19 end
Something went wrong with that request. Please try again.