Sha256: 498960c04be5b7c790a20417ae96912cd9b78b61b56c4f7e82580b54c423b7d2

Contents?: true

Size: 513 Bytes

Versions: 6

Compression:

Stored size: 513 Bytes

Contents

require "mongo-fixture"
DB = Mongo::Connection.new.db "mongo-fixture-cucumber"
puts "\e[34mConnection to MongoDB 'mongo-fixture-cucumber' loaded in \e[1mDB\e[0m\e[34m variable\e[0m"
puts "\e[34mTry the \e[1mDB[:visitors]\e[0m\e[34m, \e[1mDB[:aliens]\e[0m\e[34m, \e[1mDB[:visits]\e[0m\e[34m and \e[1mDB[:users]\e[0m\e[34m collections\e[0m"
@DB = DB
def self.drop *args
  args.each do |coll|
    @DB[coll].drop
  end
end

puts "\e[34mTip: for fast collection dropping use \e[1mdrop :collection1, :collection2\e[0m"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mongo-fixture-0.1.0 .pryrc
mongo-fixture-0.0.5 .pryrc
mongo-fixture-0.0.4 .pryrc
mongo-fixture-0.0.3 .pryrc
mongo-fixture-0.0.2 .pryrc
mongo-fixture-0.0.1 .pryrc