Sha256: ea01e6f8a8e4d6b450d6f5beac9fe43caa0b0224c43fc0cd216ab361e34dbaf9
Contents?: true
Size: 292 Bytes
Versions: 3
Compression:
Stored size: 292 Bytes
Contents
module AuthenticationSupport def stub_api_controller_authentication!(options={}) @current_api_user = options[:admin] ? create(:admin_user) : create(:user) allow(controller).to receive(:load_user) controller.instance_variable_set(:@current_api_user, @current_api_user) end end
Version data entries
3 entries across 3 versions & 1 rubygems