Sha256: d822aa7c618fffc4251f9e8a60a6c3bfa83db6ef47461309d2fa0b3efcc29e5a
Contents?: true
Size: 453 Bytes
Versions: 6
Compression:
Stored size: 453 Bytes
Contents
require 'test_helper' class HelpersTest < ActionController::TestCase tests ApplicationController setup do @mock_warden = OpenStruct.new @controller.request.env['warden'] = @mock_warden end test 'provide access to warden instance' do assert_equal @mock_warden, @controller.warden end test 'proxy scope_logged_in? to user' do @mock_warden.expects(:authenticate).with(scope: :user) @controller.user_logged_in? end end
Version data entries
6 entries across 6 versions & 1 rubygems