Sha256: 0c708069ed4baa8aa30ef52cc5d85958ce197d5ae6314441b644bb2a3f981c81

Contents?: true

Size: 426 Bytes

Versions: 8

Compression:

Stored size: 426 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 resources
    Typus::Configuration.roles[role].compact
  end

  def applications
    Typus.applications
  end

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

  def role
    Typus.master_role
  end

  def name
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
typus-3.0.2 lib/support/fake_user.rb
typus-3.0.1 lib/support/fake_user.rb
typus-3.0.0 lib/support/fake_user.rb
typus-1.0.0.pre13 lib/support/fake_user.rb
typus-1.0.0.pre12 lib/support/fake_user.rb
typus-1.0.0.pre11 lib/support/fake_user.rb
typus-1.0.0.pre10 lib/support/fake_user.rb
typus-1.0.0.pre9 lib/support/fake_user.rb