Sha256: 790dc87eb89c3b55ffa9a02dba168a43602c060b280c856d496e6116b56ba7ad

Contents?: true

Size: 307 Bytes

Versions: 9

Compression:

Stored size: 307 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

9 entries across 9 versions & 1 rubygems

Version Path
insulin-0.1.11 spec/spec_helper.rb
insulin-0.1.10 spec/spec_helper.rb
insulin-0.1.9 spec/spec_helper.rb
insulin-0.1.8 spec/spec_helper.rb
insulin-0.1.7 spec/spec_helper.rb
insulin-0.1.6 spec/spec_helper.rb
insulin-0.1.5 spec/spec_helper.rb
insulin-0.1.4 spec/spec_helper.rb
insulin-0.1.3 spec/spec_helper.rb