Class: Test::Unit::TestCase

Inherits:
Object
  • Object
show all
Includes:
Rack::Test::Methods
Defined in:
lib/resque/server/test_helper.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.should_respond_with_successObject



12
13
14
15
16
# File 'lib/resque/server/test_helper.rb', line 12

def self.should_respond_with_success
  test "should respond with success" do
    assert last_response.ok?, last_response.errors
  end
end

Instance Method Details

#appObject



8
9
10
# File 'lib/resque/server/test_helper.rb', line 8

def app
  Resque::Server.new
end