Sha256: be4353e7995f0598c0b9b70121cc94a7532fc3df07e2aeb8c721f871ef0ef6d8
Contents?: true
Size: 675 Bytes
Versions: 3
Compression:
Stored size: 675 Bytes
Contents
require 'spec_helper' def account_file_path File.join(File.dirname(__FILE__), "account.yaml") end def account? account end def account if ENV["MEGA_EMAIL"] and ENV["MEGA_PASSWORD"] {'email' => ENV["MEGA_EMAIL"], 'password' => ENV["MEGA_PASSWORD"]} elsif File.exists?(account_file_path) YAML.load_file(account_file_path) else nil end end def login Rmega.login(account['email'], account['password']) end def temp_folder $temp_folder ||= "#{Dir.tmpdir}/#{SecureRandom.hex(10)}" end RSpec.configure do |config| config.before(:all) do FileUtils.mkdir_p(temp_folder) end config.after(:all) do FileUtils.rm_rf(temp_folder) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rmega-0.3.1 | spec/integration_spec_helper.rb |
rmega-0.2.7 | spec/integration_spec_helper.rb |
rmega-0.2.6 | spec/integration_spec_helper.rb |