Sha256: 1ecfc39507f61a864642421350fbaa5aed62ec41a315402c065a8f8d32e31fd3

Contents?: true

Size: 243 Bytes

Versions: 18

Compression:

Stored size: 243 Bytes

Contents

$data ||= {}

class TestAdminsRepository
  include SmartIoC::Iocify

  bean :repository, context: :test, instance: false

  class << self
    def put(user)
      $data[user.id] = user
    end

    def get(id)
      $data[id]
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
smart_ioc-0.5.2 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.5.1 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.5.0 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.3.9 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.4.0 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.3.8 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.3.7 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.3.6 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.3.5 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.3.2 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.3.1 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.3.0 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.2.5 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.2.4 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.2.3 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.2.2 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.2.1 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.2.0 spec/smart_ioc/example/admins/repository/test/admins_repository.rb