Sha256: 7223edeb028dfb3eeca037e908b27eb2db344e1830dd916ef96090d5abf57950
Contents?: true
Size: 563 Bytes
Versions: 8
Compression:
Stored size: 563 Bytes
Contents
require 'test_helper_dummy' module UsersControllerTests extend ActiveSupport::Concern included do it 'works' do get :index assert_select 'h1', "All #{User.count} Users" end it 'redirects' do put_update_0 assert_redirected_to users_url end private def put_update_0 rails5? ? put(:update, params: { id: 0 }) : put(:update, id: 0) end end end class UsersControllerTest < ActionController::TestCase include UsersControllerTests end describe UsersController do include UsersControllerTests end
Version data entries
8 entries across 8 versions & 1 rubygems