Sha256: df87afc3be4da5d49d6aaa6544692830604f5fd5c4f470bb332505275a33f4fb
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
require 'test_helper' require 'flipper/adapters/mongo' class MongoTest < MiniTest::Test prepend SharedAdapterTests def setup host = '127.0.0.1' port = '27017' collection = Mongo::Client.new(["#{host}:#{port}"], server_selection_timeout: 1, database: 'testing')['testing'] begin collection.drop collection.create rescue Mongo::Error::OperationFailure end @adapter = Flipper::Adapters::Mongo.new(collection) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flipper-mongo-0.8.0 | test/adapters/mongo_test.rb |