Sha256: c9faca9bb696975b943b68afc698366e6094c39e43bbf59eaf7ee65d6b7f6407

Contents?: true

Size: 492 Bytes

Versions: 14

Compression:

Stored size: 492 Bytes

Contents

require 'typus/orm/active_record/user/instance_methods_more'

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

14 entries across 14 versions & 1 rubygems

Version Path
typus-3.1.10 lib/support/fake_user.rb
typus-3.1.9 lib/support/fake_user.rb
typus-3.1.8 lib/support/fake_user.rb
typus-3.1.7 lib/support/fake_user.rb
typus-3.1.6 lib/support/fake_user.rb
typus-3.1.5 lib/support/fake_user.rb
typus-3.1.4 lib/support/fake_user.rb
typus-3.1.3 lib/support/fake_user.rb
typus-3.1.2 lib/support/fake_user.rb
typus-3.1.1 lib/support/fake_user.rb
typus-3.1.0 lib/support/fake_user.rb
typus-3.1.0.rc19 lib/support/fake_user.rb
typus-3.1.0.rc18 lib/support/fake_user.rb
typus-3.1.0.rc17 lib/support/fake_user.rb