require File.expand_path(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 < ActionController::TestCase
  fixtures :users, :preferences, :projects, :contexts, :todos, :recurring_todos, :tags, :taggings

  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
  
  def test_page_load
    login_as(:admin_user)
    get :rest_api
    assert_response :success
  end
  
end
