Sha256: 7c194bb201eae8236d65b098e1d71adf199249b76ea3ea11a31c33409e891672

Contents?: true

Size: 369 Bytes

Versions: 107

Compression:

Stored size: 369 Bytes

Contents

module Ridley
  module SpecHelpers
    def app_root_path
      Pathname.new(File.expand_path('../../../', __FILE__))
    end

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

    def fixtures_path
      app_root_path.join('spec/fixtures')
    end

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

Version data entries

107 entries across 107 versions & 2 rubygems

Version Path
ridley-1.0.0.rc1 spec/support/spec_helpers.rb
ridley-0.12.4 spec/support/spec_helpers.rb
ridley-0.12.3 spec/support/spec_helpers.rb
ridley-0.12.2 spec/support/spec_helpers.rb
ridley-0.12.1 spec/support/spec_helpers.rb
ridley-0.12.0 spec/support/spec_helpers.rb
ridley-0.11.2 spec/support/spec_helpers.rb
ridley-0.12.0.rc1 spec/support/spec_helpers.rb
ridley-0.11.1 spec/support/spec_helpers.rb
ridley-0.10.2 spec/support/spec_helpers.rb
ridley-0.9.1 spec/support/spec_helpers.rb
ridley-0.10.1 spec/support/spec_helpers.rb
ridley-0.11.0.rc1 spec/support/spec_helpers.rb
ridley-0.10.0 spec/support/spec_helpers.rb
ridley-0.10.0.rc3 spec/support/spec_helpers.rb
ridley-0.10.0.rc2 spec/support/spec_helpers.rb
ridley-0.10.0.rc1 spec/support/spec_helpers.rb
ridley-0.9.0 spec/support/spec_helpers.rb
ridley-0.8.6 spec/support/spec_helpers.rb
ridley-0.8.5 spec/support/spec_helpers.rb