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

Version Path
devise-4.3.0 test/controllers/helper_methods_test.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/devise-4.2.1/test/controllers/helper_methods_test.rb
devise-4.2.1 test/controllers/helper_methods_test.rb
devise-4.2.0 test/controllers/helper_methods_test.rb
devise-4.0.3 test/controllers/helper_methods_test.rb
devise-4.1.1 test/controllers/helper_methods_test.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/devise-4.1.0/test/controllers/helper_methods_test.rb
devise-4.1.0 test/controllers/helper_methods_test.rb
devise-4.0.2 test/controllers/helper_methods_test.rb
devise-4.0.1 test/controllers/helper_methods_test.rb
devise-4.0.0 test/controllers/helper_methods_test.rb
devise-4.0.0.rc2 test/controllers/helper_methods_test.rb
devise-4.0.0.rc1 test/controllers/helper_methods_test.rb