Sha256: aa23c50246a1a12939e6b94b349b510abb582984b7e82ce90105f9e9598b0e84

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

require 'spec_helper'
require 'yaml'

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
  '/tmp/.rmega_spec'
end

RSpec.configure do |config|
  config.before { FileUtils.mkdir_p(temp_folder) }
  config.after { FileUtils.rm_rf(temp_folder) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rmega-0.1.0 spec/integration_spec_helper.rb