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.0.12 lib/support/fake_user.rb
typus-3.1.0.rc14 lib/support/fake_user.rb
typus-3.0.11 lib/support/fake_user.rb
typus-3.1.0.rc13 lib/support/fake_user.rb
typus-3.1.0.rc12 lib/support/fake_user.rb
typus-3.0.11.rc5 lib/support/fake_user.rb
typus-3.1.0.rc11 lib/support/fake_user.rb
typus-3.1.0.rc10 lib/support/fake_user.rb
typus-3.0.11.rc4 lib/support/fake_user.rb
typus-3.1.0.rc9 lib/support/fake_user.rb
typus-3.0.11.rc3 lib/support/fake_user.rb
typus-3.1.0.rc8 lib/support/fake_user.rb
typus-3.1.0.rc7 lib/support/fake_user.rb
typus-3.1.0.rc6 lib/support/fake_user.rb
typus-3.1.0.rc5 lib/support/fake_user.rb
typus-3.1.0.rc4 lib/support/fake_user.rb
typus-3.1.0.rc3 lib/support/fake_user.rb
typus-3.1.0.rc2 lib/support/fake_user.rb
typus-3.0.11.rc2 lib/support/fake_user.rb
typus-3.0.11.rc1 lib/support/fake_user.rb