Sha256: b8afe5a251e66f82b4dc9f6d6e70503d84a9143bc98bb2106f82da66fa9388e5

Contents?: true

Size: 850 Bytes

Versions: 33

Compression:

Stored size: 850 Bytes

Contents

require 'helper'
require 'sequel'

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

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

RSpec.describe Flipper::Adapters::Sequel do
  subject do
    described_class.new(feature_class: feature_class,
                        gate_class: gate_class)
  end

  let(:feature_class) { Flipper::Adapters::Sequel::Feature }
  let(:gate_class) { Flipper::Adapters::Sequel::Gate }

  before(:each) do
    CreateFlipperTablesSequel.new(Sequel::Model.db).up
    feature_class.dataset = feature_class.dataset
    gate_class.dataset = gate_class.dataset
  end

  after(:each) do
    CreateFlipperTablesSequel.new(Sequel::Model.db).down
  end

  it_should_behave_like 'a flipper adapter'
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
flipper-sequel-0.20.4 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.20.3 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.20.2 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.20.1 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.20.0 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.20.0.beta3 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.20.0.beta2 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.20.0.beta1 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.19.1 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.19.0 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.18.0 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.17.2 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.17.1 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.16.2 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.16.1 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.16.0 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.15.0 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.14.0 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.13.0 spec/flipper/adapters/sequel_spec.rb
flipper-sequel-0.13.0.beta1 spec/flipper/adapters/sequel_spec.rb