Sha256: 19e8269ccfd981d18b7da4fcf8970f1d137b9ebe0f64f373183483057d9d4d35

Contents?: true

Size: 461 Bytes

Versions: 7

Compression:

Stored size: 461 Bytes

Contents

require "fileutils"
require "pathname"
require "support/cli"
require "support/rack"

RSpec.configure do |config|
  include SpecHelpers

  def tmp
    @tmp ||= Pathname.new(File.expand_path("../../tmp", __FILE__))
  end

  def reset_tmp
    FileUtils.rm_rf(tmp)
    FileUtils.mkdir_p(tmp)
    Dir.chdir(tmp)
  end

  def fixtures
    @fixtures ||= Pathname.new(File.expand_path("../fixtures", __FILE__))
  end

  config.before(:suite) do
    reset_tmp
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
guides-0.7.2 spec/spec_helper.rb
guides-0.7.1 spec/spec_helper.rb
guides-0.7.0 spec/spec_helper.rb
guides-0.6.10 spec/spec_helper.rb
guides-0.6.9 spec/spec_helper.rb
guides-0.6.8.1 spec/spec_helper.rb
guides-0.6.8 spec/spec_helper.rb