module RSpec module Helpers def lib File.expand_path('../../../lib', __FILE__) end def flombefile(*args) path = flombe_app("Flombefile") path = args.shift if Pathname === args.first str = args.shift || "" path.dirname.mkpath File.open(path.to_s, 'w') do |f| f.puts str end path.to_s end end end