Sha256: e91f31df4b2e50833bc52c81c4397aed6bb0eae553d08ae329984f7dadff3189
Contents?: true
Size: 536 Bytes
Versions: 4
Compression:
Stored size: 536 Bytes
Contents
require 'test_helper' require 'articles_controller' require 'action_controller/test_process' class ArticlesController; def rescue_action(e) raise e end; end class ArticlesControllerTest < ActionController::TestCase def setup @controller = ArticlesController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new ActionController::Routing::Routes.draw do |map| map.resources :articles end end def test_index get :index assert_response :success end end
Version data entries
4 entries across 4 versions & 1 rubygems