Sha256: d784b5284d88f214526e56bc56f01f6134670af2f9b2919b807d582549f33cbe

Contents?: true

Size: 376 Bytes

Versions: 11

Compression:

Stored size: 376 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
flombe-0.1.0.12 spec/support/helpers.rb
flombe-0.1.0.11 spec/support/helpers.rb
flombe-0.1.0.10 spec/support/helpers.rb
flombe-0.1.0.9 spec/support/helpers.rb
flombe-0.1.0.8 spec/support/helpers.rb
flombe-0.1.0.7 spec/support/helpers.rb
flombe-0.1.0.6 spec/support/helpers.rb
flombe-0.1.0.5 spec/support/helpers.rb
flombe-0.1.0.4 spec/support/helpers.rb
flombe-0.1.0.3 spec/support/helpers.rb
flombe-0.1.0.2 spec/support/helpers.rb