Sha256: 56086c7366aaa3444622ba85872ff36a1e673f1c6be997d051080ad37b777066

Contents?: true

Size: 556 Bytes

Versions: 8

Compression:

Stored size: 556 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

8 entries across 8 versions & 1 rubygems

Version Path
flipper-active_record-0.11.0.beta9 test/adapters/active_record_test.rb
flipper-active_record-0.11.0.beta8 test/adapters/active_record_test.rb
flipper-active_record-0.11.0.beta7 test/adapters/active_record_test.rb
flipper-active_record-0.11.0.beta6 test/adapters/active_record_test.rb
flipper-active_record-0.11.0.beta5 test/adapters/active_record_test.rb
flipper-active_record-0.11.0.beta4 test/adapters/active_record_test.rb
flipper-active_record-0.11.0.beta3 test/adapters/active_record_test.rb
flipper-active_record-0.11.0.beta1 test/adapters/active_record_test.rb