Sha256: 14f083d19c3089edadd20b7fcf58ed7807eaaeebe0e1ba79c353fae3b0a35f69
Contents?: true
Size: 970 Bytes
Versions: 7
Compression:
Stored size: 970 Bytes
Contents
require 'warden/test/helpers' require 'warden/github/user' module Sinatra module Auth module Github module Test module Helper include(Warden::Test::Helpers) def make_user(attrs = {}) User.make(attrs) end class User < Warden::GitHub::User def self.make(attrs = {}) default_attrs = { 'login' => "test_user", 'name' => "Test User", 'email' => "test@example.com", 'company' => "GitHub", 'gravatar_id' => 'a'*32, 'avatar_url' => 'https://a249.e.akamai.net/assets.github.com/images/gravatars/gravatar-140.png?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png' } default_attrs.merge! attrs User.new(default_attrs) end end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems