Sha256: 42f26fa2e1f648b7366feccdaeb5fa886ab601ac4ba63dac3fdfe7c67f08bd2c

Contents?: true

Size: 333 Bytes

Versions: 5

Compression:

Stored size: 333 Bytes

Contents

class User < OpenStruct
  include GDS::SSO::User

  def self.find_by_uid(something)
    stub_user
  end

  def self.first
    # stub_user
    false
  end

  def self.stub_user
    User.new({ :uid => '1', :name => "User", :permissions => { "GDS_SSO integration test" => ["signin"] } })
  end

  def update_attributes(*args)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gds-sso-1.0.0 spec/internal/app/models/user.rb
gds-sso-0.8.0 spec/internal/app/models/user.rb
gds-sso-0.7.9 spec/internal/app/models/user.rb
gds-sso-0.7.8 spec/internal/app/models/user.rb
gds-sso-0.7.7 spec/internal/app/models/user.rb