2007-03-30 04:36:52 +00:00
|
|
|
require File.dirname(__FILE__) + '/../test_helper'
|
|
|
|
|
require 'data_controller'
|
|
|
|
|
|
|
|
|
|
# Re-raise errors caught by the controller.
|
|
|
|
|
class DataController; def rescue_action(e) raise e end; end
|
|
|
|
|
|
2007-05-25 19:01:08 +00:00
|
|
|
class DataControllerTest < Test::Rails::TestCase
|
2007-04-02 04:29:48 +00:00
|
|
|
fixtures :users, :preferences, :projects, :notes
|
|
|
|
|
|
2007-03-30 04:36:52 +00:00
|
|
|
def setup
|
|
|
|
|
@controller = DataController.new
|
|
|
|
|
@request = ActionController::TestRequest.new
|
|
|
|
|
@response = ActionController::TestResponse.new
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# Replace this with your real tests.
|
2007-04-02 04:29:48 +00:00
|
|
|
def test_csv_export_completes_without_error
|
2007-10-09 05:17:28 +00:00
|
|
|
login_as :admin_user
|
2007-04-02 04:29:48 +00:00
|
|
|
get :csv_notes
|
2007-03-30 04:36:52 +00:00
|
|
|
end
|
2009-02-08 15:25:42 +01:00
|
|
|
|
|
|
|
|
def test_yml_export_comleted_without_error
|
|
|
|
|
login_as :admin_user
|
|
|
|
|
get :yaml_export
|
|
|
|
|
end
|
2007-03-30 04:36:52 +00:00
|
|
|
end
|