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-5.1.1 spec/support/spec_helpers.rb
ridley-5.1.0 spec/support/spec_helpers.rb
ridley-5.0.0 spec/support/spec_helpers.rb
ridley-4.6.1 spec/support/spec_helpers.rb
ridley-4.6.0 spec/support/spec_helpers.rb
ridley-4.5.1 spec/support/spec_helpers.rb
ridley-4.5.0 spec/support/spec_helpers.rb
ridley-4.4.3 spec/support/spec_helpers.rb
ridley-4.4.2 spec/support/spec_helpers.rb
ridley-4.4.1 spec/support/spec_helpers.rb
ridley-4.4.0 spec/support/spec_helpers.rb
ridley-connectors-2.4.0 spec/support/spec_helpers.rb
ridley-4.3.2 spec/support/spec_helpers.rb
ridley-4.3.1 spec/support/spec_helpers.rb
ridley-4.3.0 spec/support/spec_helpers.rb
ridley-4.2.0 spec/support/spec_helpers.rb
ridley-4.1.2 spec/support/spec_helpers.rb
ridley-4.1.1 spec/support/spec_helpers.rb
ridley-4.1.0 spec/support/spec_helpers.rb
ridley-connectors-2.3.1 spec/support/spec_helpers.rb