Sha256: 3c3db01cb78e5ab39461b864e6da3658ba9ae71db7823f7b5d27042ab38cc17e
Contents?: true
Size: 475 Bytes
Versions: 3
Compression:
Stored size: 475 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 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 status true end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
typus-3.0.6 | lib/support/fake_user.rb |
typus-3.0.5 | lib/support/fake_user.rb |
typus-3.0.4 | lib/support/fake_user.rb |