Sha256: a822a65044e036d928558e1d5e63f425c4971d44c6a1c31739bf26ad36f266b9
Contents?: true
Size: 529 Bytes
Versions: 4
Compression:
Stored size: 529 Bytes
Contents
require 'helper' require 'flipper/adapters/mongo' require 'flipper/spec/shared_adapter_specs' Mongo::Logger.logger.level = Logger::INFO describe Flipper::Adapters::Mongo do let(:collection) { Mongo::Client.new(["127.0.0.1:#{ENV["BOXEN_MONGODB_PORT"] || 27017}"], :database => 'testing')['testing'] } subject { described_class.new(collection) } before do begin collection.drop rescue Mongo::Error::OperationFailure end collection.create end it_should_behave_like 'a flipper adapter' end
Version data entries
4 entries across 4 versions & 1 rubygems