Sha256: 9e6707041b09658ea84e70ac4ef244f92d32d86b3670c2c7a9abd9ca61baad24

Contents?: true

Size: 550 Bytes

Versions: 1

Compression:

Stored size: 550 Bytes

Contents

require 'spec_helper'

def account_file_path
  File.join File.dirname(__FILE__), 'integration/rmega_account.yml'
end

def account_file_exists?
  File.exists? account_file_path
end

def account
  @account ||= YAML.load_file account_file_path
end

def login
  Rmega.login(account['email'], account['password'])
end

def temp_folder
  Dir.tmpdir
end

RSpec.configure do |config|
  config.before(:all) do
    Rmega.options.show_progress = false
    FileUtils.mkdir_p(temp_folder)
  end

  config.after(:all) do
    FileUtils.rm_rf(temp_folder)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rmega-0.2.0 spec/integration_spec_helper.rb