spec/integration_spec_helper.rb in rmega-0.2.5 vs spec/integration_spec_helper.rb in rmega-0.2.6
- old
+ new
@@ -21,10 +21,10 @@
def login
Rmega.login(account['email'], account['password'])
end
def temp_folder
- Dir.tmpdir
+ $temp_folder ||= "#{Dir.tmpdir}/#{SecureRandom.hex(10)}"
end
RSpec.configure do |config|
config.before(:all) do
FileUtils.mkdir_p(temp_folder)