Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require File.dirname(__FILE__) + '/../test_helper'
- require 'log_entry_controller'
- # Re-raise errors caught by the controller.
- class LogEntryController; def rescue_action(e) raise e end; end
- class LogEntryControllerTest < Test::Unit::TestCase
- self.use_instantiated_fixtures = true
- fixtures :user_units
- fixtures :users
- def setup
- @controller = LogEntryController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- @controller.session = {"login" => "bob"}
- end
- # Replace this with your real tests.
- def test_add_setup
- get :add
- assert_response :success # NOT LOGGED IN! SO DOESN'T WORK
- end
- end
Add Comment
Please, Sign In to add comment