Sha256: 8bcd4b0bb56157ee79de0fe75b92f6c1f80b8d080b6c22dc6e709819c8ea19c6

Contents?: true

Size: 487 Bytes

Versions: 2

Compression:

Stored size: 487 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

=begin
  def resources
    Typus::Configuration.roles[role].compact
  end
=end

  def applications
    Typus.applications
  end

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

  def role
    Typus.master_role
  end

  def status
    true
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
typus-3.0.8 lib/support/fake_user.rb
typus-3.0.7 lib/support/fake_user.rb