Sha256: ec6fa6d049c69219b38ebc17ad0c7d298da87c129642da90ac9fe79222b0d407

Contents?: true

Size: 445 Bytes

Versions: 23

Compression:

Stored size: 445 Bytes

Contents

class FakeUser

  def id
    0
  end

  def can?(*args)
    true
  end

  def cannot?(*args)
    !can?(*args)
  end

  def is_root?
    true
  end

  def is_not_root?
    !is_root?
  end

  def locale
    ::I18n.locale
  end

  def applications
    Typus.applications
  end

  def application(name)
    Typus.application(name)
  end

  def role
    Typus.master_role
  end

  def status
    true
  end

  def owns?(resource)
    true
  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
typus-3.1.0.rc1 lib/support/fake_user.rb
typus-3.0.10 lib/support/fake_user.rb
typus-3.0.9 lib/support/fake_user.rb