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-1.3.2 test/adapters/sequel_test.rb
flipper-sequel-1.3.1 test/adapters/sequel_test.rb
flipper-sequel-1.3.0 test/adapters/sequel_test.rb
flipper-sequel-1.3.0.pre test/adapters/sequel_test.rb
flipper-sequel-1.2.2 test/adapters/sequel_test.rb
flipper-sequel-1.2.1 test/adapters/sequel_test.rb
flipper-sequel-1.2.0 test/adapters/sequel_test.rb
flipper-sequel-1.1.2 test/adapters/sequel_test.rb
flipper-sequel-1.1.1 test/adapters/sequel_test.rb
flipper-sequel-1.1.0 test/adapters/sequel_test.rb
flipper-sequel-1.0.0 test/adapters/sequel_test.rb
flipper-sequel-1.0.0.pre test/adapters/sequel_test.rb
flipper-sequel-0.28.3 test/adapters/sequel_test.rb
flipper-sequel-0.28.2 test/adapters/sequel_test.rb
flipper-sequel-0.28.1 test/adapters/sequel_test.rb
flipper-sequel-0.28.0 test/adapters/sequel_test.rb
flipper-sequel-0.27.1 test/adapters/sequel_test.rb
flipper-sequel-0.27.0 test/adapters/sequel_test.rb
flipper-sequel-0.26.2 test/adapters/sequel_test.rb
flipper-sequel-0.26.0 test/adapters/sequel_test.rb