lib/rspec/qbec/helper.rb in rspec-qbec-0.0.2 vs lib/rspec/qbec/helper.rb in rspec-qbec-0.0.3
- old
+ new
@@ -52,10 +52,10 @@
end
def write_file(str)
file_path = ''
loop do
- file_path = Dir.tmpdir + "/qbec_#{DateTime.now.strftime('%Q')}"
+ file_path = Dir.tmpdir + "/qbec_#{DateTime.now.strftime('%Q')}.yml"
break unless File.exist?(file_path)
end
File.open(file_path, 'w') { |file| file.write(str) }
file_path
end