Sha256: b2e7859f1bbc3e05a47cdbf87ab4efff15a4bb691070e15514b64aae04d676ca

Contents?: true

Size: 723 Bytes

Versions: 70

Compression:

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

70 entries across 70 versions & 1 rubygems

Version Path
flipper-sequel-0.11.0 test/adapters/sequel_test.rb
flipper-sequel-0.11.0.rc1 test/adapters/sequel_test.rb
flipper-sequel-0.11.0.beta9 test/adapters/sequel_test.rb
flipper-sequel-0.11.0.beta8 test/adapters/sequel_test.rb
flipper-sequel-0.11.0.beta7 test/adapters/sequel_test.rb
flipper-sequel-0.11.0.beta6 test/adapters/sequel_test.rb
flipper-sequel-0.11.0.beta5 test/adapters/sequel_test.rb
flipper-sequel-0.11.0.beta4 test/adapters/sequel_test.rb
flipper-sequel-0.11.0.beta3 test/adapters/sequel_test.rb
flipper-sequel-0.11.0.beta1 test/adapters/sequel_test.rb