Sha256: 732a0738e98824bb312e4bdd9d389d6b616ca9cb6fd254116308bed9470e524a

Contents?: true

Size: 566 Bytes

Versions: 3

Compression:

Stored size: 566 Bytes

Contents

describe "standard_activerecord_with_expires", adapter: :ActiveRecord do
  let(:t_res) { 0.125 }
  let(:min_ttl) { t_res }
  use_timecop

  moneta_store :ActiveRecord do
    {
      table: 'standard_activerecord_with_expires',
      connection: {
        adapter: (defined?(JRUBY_VERSION) ? 'jdbcmysql' : 'mysql2'),
        database: mysql_database1,
        username: mysql_username
      },
      expires: true
    }
  end


  moneta_loader do |value|
    ::Marshal.load(value.unpack('m').first)
  end

  moneta_specs STANDARD_SPECS.with_expires.with_each_key
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
moneta-1.4.1 spec/moneta/adapters/activerecord/standard_activerecord_with_expires_spec.rb
moneta-1.4.0 spec/moneta/adapters/activerecord/standard_activerecord_with_expires_spec.rb
moneta-1.3.0 spec/moneta/adapters/activerecord/standard_activerecord_with_expires_spec.rb