Class: Test::Unit::TestCase

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.should_respond_with_successObject



14
15
16
17
18
# File 'lib/resque/plugins/aps/server/test_helper.rb', line 14

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



10
11
12
# File 'lib/resque/plugins/aps/server/test_helper.rb', line 10

def app
  Resque::Server.new
end