Sha256: 26d16d5ac020dace7fe47cc7eb219fae26e5e1e8c31a764142cbbf2b2d80fa8a

Contents?: true

Size: 724 Bytes

Versions: 3

Compression:

Stored size: 724 Bytes

Contents

require 'test_helper'
require 'sequel'

Sequel::Model.db =  Sequel.sqlite(':memory:')
Sequel.extension :migration, :core_extensions

require 'flipper/adapters/sequel'
require 'generators/flipper/templates/sequel_migration'

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

  def feature_class
    Flipper::Adapters::Sequel::Feature
  end

  def gate_class
    Flipper::Adapters::Sequel::Gate
  end

  def setup
    CreateFlipperTablesSequel.new(Sequel::Model.db).up
    feature_class.dataset = feature_class.dataset
    gate_class.dataset = gate_class.dataset
    @adapter = Flipper::Adapters::Sequel.new
  end

  def teardown
    CreateFlipperTablesSequel.new(Sequel::Model.db).down
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flipper-sequel-0.10.2 test/adapters/sequel_test.rb
flipper-sequel-0.10.1 test/adapters/sequel_test.rb
flipper-sequel-0.10.0 test/adapters/sequel_test.rb