Sha256: 5c1141ece4116d43dd2521e48f35a1c9a72d71bc177a0392adfc80a12aad2f9c
Contents?: true
Size: 597 Bytes
Versions: 13
Compression:
Stored size: 597 Bytes
Contents
require 'test_helper' class ApiController < ActionController::Metal include Devise::Controllers::Helpers end class HelperMethodsTest < Devise::ControllerTestCase tests ApiController test 'includes Devise::Controllers::Helpers' do assert_includes @controller.class.ancestors, Devise::Controllers::Helpers end test 'does not respond_to helper or helper_method' do refute_respond_to @controller.class, :helper refute_respond_to @controller.class, :helper_method end test 'defines methods like current_user' do assert_respond_to @controller, :current_user end end
Version data entries
13 entries across 13 versions & 3 rubygems