Sha256: a40c2488c9edbe9db22ecbf6592372178fa3c7959d6d2baba2dd39ca69b056de
Contents?: true
Size: 514 Bytes
Versions: 7
Compression:
Stored size: 514 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(:all) { FileUtils.mkdir_p(temp_folder) } config.after(:all) { FileUtils.rm_rf(temp_folder) } end
Version data entries
7 entries across 7 versions & 1 rubygems