Sha256: 9cdc4bc224b10f987e4d1ba677ed707c93937cac7a501c37d658b1b1a88242d1
Contents?: true
Size: 394 Bytes
Versions: 2
Compression:
Stored size: 394 Bytes
Contents
module Vedeu class RepositoriesTestClass include Repository attr_accessor :storage alias_method :in_memory, :storage def initialize(storage = {}) @storage = storage end def add(model) if storage.is_a?(Hash) @storage = in_memory.merge!(model) else @storage << model end end end # RepositoriesTestClass end # Vedeu
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.2.12 | test/support/test_classes/repositories.rb |
vedeu-0.2.11 | test/support/test_classes/repositories.rb |