Sha256: 72c68a6f6b1fafbfb21c70ff9a0f4c99529cfbafb716f549c6c9649d6b55b6f7
Contents?: true
Size: 430 Bytes
Versions: 2
Compression:
Stored size: 430 Bytes
Contents
class FakeUser include Typus::Orm::ActiveRecord::User::InstanceMethodsMore 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 applications Typus.applications end def application(name) Typus.application(name) end def status true end def owns?(resource) true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typus-3.1.0.rc16 | lib/support/fake_user.rb |
typus-3.1.0.rc15 | lib/support/fake_user.rb |