Sha256: f011da9b8861d36b7b0576a4bcbaceddb09b117b33153477700f2164ef23362e

Contents?: true

Size: 368 Bytes

Versions: 11

Compression:

Stored size: 368 Bytes

Contents

module RSpec
  module Paths
    def root
      @root ||= Pathname.new(File.expand_path("../../..", __FILE__))
    end

    def tmp(*path)
      root.join("tmp", *path)
    end

    def home(*path)
      tmp.join("home", *path)
    end

    def flombe_app(*path)
      root = tmp.join("flombe_app")
      FileUtils.mkdir_p(root)
      root.join(*path)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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