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.20.1 test/adapters/sequel_test.rb
flipper-sequel-0.20.0 test/adapters/sequel_test.rb
flipper-sequel-0.20.0.beta3 test/adapters/sequel_test.rb
flipper-sequel-0.20.0.beta2 test/adapters/sequel_test.rb
flipper-sequel-0.20.0.beta1 test/adapters/sequel_test.rb
flipper-sequel-0.19.1 test/adapters/sequel_test.rb
flipper-sequel-0.19.0 test/adapters/sequel_test.rb
flipper-sequel-0.18.0 test/adapters/sequel_test.rb
flipper-sequel-0.17.2 test/adapters/sequel_test.rb
flipper-sequel-0.17.1 test/adapters/sequel_test.rb
flipper-sequel-0.16.2 test/adapters/sequel_test.rb
flipper-sequel-0.16.1 test/adapters/sequel_test.rb
flipper-sequel-0.16.0 test/adapters/sequel_test.rb
flipper-sequel-0.15.0 test/adapters/sequel_test.rb
flipper-sequel-0.14.0 test/adapters/sequel_test.rb
flipper-sequel-0.13.0 test/adapters/sequel_test.rb
flipper-sequel-0.13.0.beta1 test/adapters/sequel_test.rb
flipper-sequel-0.12.2 test/adapters/sequel_test.rb
flipper-sequel-0.12.1 test/adapters/sequel_test.rb
flipper-sequel-0.12.0 test/adapters/sequel_test.rb