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.26.0.rc2 test/adapters/sequel_test.rb
flipper-sequel-0.26.0.rc1 test/adapters/sequel_test.rb
flipper-sequel-0.25.4 test/adapters/sequel_test.rb
flipper-sequel-0.25.3 test/adapters/sequel_test.rb
flipper-sequel-0.25.2 test/adapters/sequel_test.rb
flipper-sequel-0.25.1 test/adapters/sequel_test.rb
flipper-sequel-0.25.0 test/adapters/sequel_test.rb
flipper-sequel-0.24.1 test/adapters/sequel_test.rb
flipper-sequel-0.24.0 test/adapters/sequel_test.rb
flipper-sequel-0.23.1 test/adapters/sequel_test.rb
flipper-sequel-0.23.0 test/adapters/sequel_test.rb
flipper-sequel-0.22.2 test/adapters/sequel_test.rb
flipper-sequel-0.22.1 test/adapters/sequel_test.rb
flipper-sequel-0.22.0 test/adapters/sequel_test.rb
flipper-sequel-0.21.0 test/adapters/sequel_test.rb
flipper-sequel-0.21.0.rc2 test/adapters/sequel_test.rb
flipper-sequel-0.21.0.rc1 test/adapters/sequel_test.rb
flipper-sequel-0.20.4 test/adapters/sequel_test.rb
flipper-sequel-0.20.3 test/adapters/sequel_test.rb
flipper-sequel-0.20.2 test/adapters/sequel_test.rb