spec/integration_spec_helper.rb in rmega-0.1.7 vs spec/integration_spec_helper.rb in rmega-0.2.0

- old
+ new

@@ -1,7 +1,6 @@ require 'spec_helper' -require 'yaml' def account_file_path File.join File.dirname(__FILE__), 'integration/rmega_account.yml' end @@ -16,12 +15,18 @@ def login Rmega.login(account['email'], account['password']) end def temp_folder - '/tmp/.rmega_spec' + Dir.tmpdir end RSpec.configure do |config| - config.before(:all) { FileUtils.mkdir_p(temp_folder) } - config.after(:all) { FileUtils.rm_rf(temp_folder) } + 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