cookies_controller_test.rb 891 B

1234567891011121314151617181920212223242526
  1. #---
  2. # Excerpted from "Agile Web Development with Rails",
  3. # published by The Pragmatic Bookshelf.
  4. # Copyrights apply to this code. It may not be used to create training material,
  5. # courses, books, articles, and the like. Contact us if you are in doubt.
  6. # We make no guarantees that this code is fit for any purpose.
  7. # Visit http://www.pragmaticprogrammer.com/titles/rails4 for more book information.
  8. #---
  9. require File.dirname(__FILE__) + '/../test_helper'
  10. require 'cookies_controller'
  11. # Re-raise errors caught by the controller.
  12. class CookiesController; def rescue_action(e) raise e end; end
  13. class CookiesControllerTest < Test::Unit::TestCase
  14. def setup
  15. @controller = CookiesController.new
  16. @request = ActionController::TestRequest.new
  17. @response = ActionController::TestResponse.new
  18. end
  19. # Replace this with your real tests.
  20. def test_truth
  21. assert true
  22. end
  23. end