Sha256: fabf6f4a7162afdddb77ed2d6687a3adfffa2bd3eab2d230be1a491c1d47a478

Contents?: true

Size: 434 Bytes

Versions: 16

Compression:

Stored size: 434 Bytes

Contents

# -*- encoding : utf-8 -*-

class User < Map
  def id() self[:id] end
  def email() self[:email] end

  def User.current
    @current ||= User.new(:id => '42', :email => 'ara.t.howard@gmail.com')
  end
end

module Kernel
private
  def scmp(a, b)
    if b == nil
      puts
      puts a
      puts
      true
    else
      a.to_s.gsub(/\s+/, '') == b.to_s.gsub(/\s+/, '')
    end
  end
  def current_user()
    User.current
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dao-8.0.1 test/util.rb
dao-8.0.0 test/util.rb
dao-7.0.0 test/util.rb
dao-5.6.1 test/helper.rb
dao-5.5.2 test/helper.rb
dao-5.5.1 test/helper.rb
dao-5.5.0 test/helper.rb
dao-5.4.0 test/helper.rb
dao-5.3.3 test/helper.rb
dao-5.3.2 test/helper.rb
dao-5.3.0 test/helper.rb
dao-5.2.1 test/helper.rb
dao-5.1.2 test/helper.rb
dao-5.1.1 test/helper.rb
dao-5.0.0 test/helper.rb
dao-4.6.4 test/helper.rb