2007-10-14 05:33:00 +00:00
|
|
|
require File.dirname(__FILE__) + '/../test_helper'
|
|
|
|
|
require 'integrations_controller'
|
|
|
|
|
|
|
|
|
|
# Re-raise errors caught by the controller.
|
|
|
|
|
class IntegrationsController; def rescue_action(e) raise e end; end
|
|
|
|
|
|
|
|
|
|
class IntegrationsControllerTest < Test::Unit::TestCase
|
2008-05-12 15:28:34 +00:00
|
|
|
fixtures :users, :preferences, :projects, :contexts, :todos, :tags, :taggings
|
|
|
|
|
|
2007-10-14 05:33:00 +00:00
|
|
|
def setup
|
|
|
|
|
@controller = IntegrationsController.new
|
|
|
|
|
@request = ActionController::TestRequest.new
|
|
|
|
|
@response = ActionController::TestResponse.new
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# Replace this with your real tests.
|
|
|
|
|
def test_truth
|
|
|
|
|
assert true
|
|
|
|
|
end
|
2008-05-12 15:28:34 +00:00
|
|
|
|
|
|
|
|
def test_page_load
|
|
|
|
|
login_as(:admin_user)
|
|
|
|
|
get :rest_api
|
|
|
|
|
assert_response :success
|
|
|
|
|
end
|
|
|
|
|
|
2007-10-14 05:33:00 +00:00
|
|
|
end
|