ref: master
plugins/remote_user/test/unit/remote_user_plugin_test.rb
1 2 3 4 5 6 7 8 9 10 11 |
require 'test_helper' require_relative '../../../../test/api/test_helper' class RemoteUserPluginTest < ActiveSupport::TestCase should 'call remote user hotspot to authenticate in API' do environment = Environment.default environment.enable_plugin(RemoteUserPlugin) RemoteUserPlugin.any_instance.expects(:api_custom_login).once get "/api/v1/people/me" end end |