Sha256: 501a4cf8e13a4da0765b7dc30ff595ef5d1fdd8440a68f4d146d93ef8f720d87

Contents?: true

Size: 511 Bytes

Versions: 102

Compression:

Stored size: 511 Bytes

Contents

module SpecSetup
  def load_scripts(path, dt)
    Marty::Script.load_scripts(path, dt)
    Marty::ScriptSet.clear_cache
  end

  def posting(type, dt, comment)
    Marty::Posting.clear_lookup_cache!
    Marty::Posting.do_create(type, dt, comment)
  end

  def dg_from_import(*args)
    Marty::DataGrid.create_from_import(*args)
  end

  def marty_whodunnit
    Mcfly.whodunnit = Marty::User.find_by_login('marty')
  end

  def do_import_summary(*args)
    Marty::DataImporter.do_import_summary(*args)
  end
end

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
marty-0.5.39 spec/support/spec_setup.rb
marty-0.5.38 spec/support/spec_setup.rb