Sha256: 91dcc0aecc08d4939dbabab2ff8035bc054113b0acb5cc3776d2a4213ec8893e

Contents?: true

Size: 461 Bytes

Versions: 4

Compression:

Stored size: 461 Bytes

Contents

module DirectoryHelper
  def project_dir
    @project_dir ||= File.expand_path('..', spec_dir)
  end

  def spec_dir
    APPSIGNAL_SPEC_DIR
  end

  def support_dir
    @support_dir ||= File.join(spec_dir, 'support')
  end

  def tmp_dir
    @tmp_dir ||= File.join(spec_dir, 'tmp')
  end

  def fixtures_dir
    @fixtures_dir ||= File.join(support_dir, 'fixtures')
  end

  def resources_dir
    @resources_dir ||= File.join(project_dir, 'resources')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
appsignal-1.3.6 spec/support/helpers/directory_helper.rb
appsignal-1.3.6.beta.1 spec/support/helpers/directory_helper.rb
appsignal-1.3.5 spec/support/helpers/directory_helper.rb
appsignal-1.3.5.beta.1 spec/support/helpers/directory_helper.rb