Sha256: 6929f461fba540933acc223f028d0d38f2a47607876e75a85d750b6ca88a7c27

Contents?: true

Size: 306 Bytes

Versions: 8

Compression:

Stored size: 306 Bytes

Contents

require 'insulin'

@mongo

def load_test_db
  config = Insulin::Config.new 'conf/insulin_dev.yaml'
  mconf = config.get_section "mongo"
  @mongo = Insulin::MongoHandle.new mconf

  csv = Insulin::OnTrack::CsvFile.new "files/on_track.csv"
  csv.save_events @mongo
end

def drop_test_db
  @mongo.drop_db
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
insulin-0.1.2 spec/spec_helper.rb
insulin-0.1.1 spec/spec_helper.rb
insulin-0.1.0 spec/spec_helper.rb
insulin-0.0.18 spec/spec_helper.rb
insulin-0.0.17 spec/spec_helper.rb
insulin-0.0.16 spec/spec_helper.rb
insulin-0.0.15 spec/spec_helper.rb
insulin-0.0.14 spec/spec_helper.rb