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