Sha256: 442f0eeaee6264e205e1f52fffef6fe4b6e9160429d80c5ac0cfe6ea8cbd4c8b

Contents?: true

Size: 529 Bytes

Versions: 7

Compression:

Stored size: 529 Bytes

Contents

require 'test_helper'
require 'flipper/adapters/active_record'
require 'generators/flipper/templates/migration'

# Turn off migration logging for specs
ActiveRecord::Migration.verbose = false

class ActiveRecordTest < MiniTest::Test
  prepend Flipper::Test::SharedAdapterTests

  ActiveRecord::Base.establish_connection({
    adapter: "sqlite3",
    database: ":memory:",
  })

  def setup
    @adapter = Flipper::Adapters::ActiveRecord.new
    CreateFlipperTables.up
  end

  def teardown
    CreateFlipperTables.down
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
flipper-active_record-0.10.2 test/adapters/active_record_test.rb
flipper-active_record-0.10.1 test/adapters/active_record_test.rb
flipper-active_record-0.10.0 test/adapters/active_record_test.rb
flipper-active_record-0.9.2 test/adapters/active_record_test.rb
flipper-active_record-0.9.1 test/adapters/active_record_test.rb
flipper-active_record-0.9.0 test/adapters/active_record_test.rb
flipper-active_record-0.9.0.beta1 test/adapters/active_record_test.rb