Sha256: c1c8f2e5409643ce53c85ec80abb5f3a1f27de4d98dfa6a81c483a5fe4172160

Contents?: true

Size: 355 Bytes

Versions: 15

Compression:

Stored size: 355 Bytes

Contents

require 'pathname'

module Chozo
  module Spec
    module Helpers
      def app_root_path
        Pathname.new(File.expand_path('../../../', __FILE__))
      end

      def tmp_path
        app_root_path.join('spec/tmp')
      end

      def clean_tmp_path
        FileUtils.rm_rf(tmp_path)
        FileUtils.mkdir_p(tmp_path)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
chozo-0.6.1 spec/support/helpers.rb
chozo-0.6.0 spec/support/helpers.rb
chozo-0.5.0 spec/support/helpers.rb
chozo-0.4.2 spec/support/helpers.rb
chozo-0.4.1 spec/support/helpers.rb
chozo-0.4.0 spec/support/helpers.rb
chozo-0.3.0 spec/support/helpers.rb
chozo-0.2.3 spec/support/helpers.rb
chozo-0.2.2 spec/support/helpers.rb
chozo-0.2.1 spec/support/helpers.rb
chozo-0.2.0 spec/support/helpers.rb
chozo-0.1.0 spec/support/helpers.rb
chozo-0.0.3 spec/support/helpers.rb
chozo-0.0.2 spec/support/helpers.rb
chozo-0.0.1 spec/support/helpers.rb