Sha256: 43305c5b8b18ec0c1252f3d70591554340a2c92c631e5cc9e72564538c75ff97

Contents?: true

Size: 243 Bytes

Versions: 17

Compression:

Stored size: 243 Bytes

Contents

class TestAdminsRepository
  include SmartIoC::Iocify

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

  @data = {}

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

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
smart_ioc-0.1.30 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.29 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.28 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.27 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.26 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.25 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.24 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.23 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.22 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.21 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.20 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.19 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.18 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.17 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.16 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.14 spec/smart_ioc/example/admins/repository/test/admins_repository.rb
smart_ioc-0.1.13 spec/smart_ioc/example/admins/repository/test/admins_repository.rb