Sha256: 1cbf9f8de7897a0e35500964472a04a5c20910d5a952a2bb1e1e7e2e182a8db5

Contents?: true

Size: 809 Bytes

Versions: 2

Compression:

Stored size: 809 Bytes

Contents

require 'pry'
require 'rack/test'
require 'brief'

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

module Brief
  def self.spec_root
    Pathname(File.dirname(__FILE__))
  end

  def self.example_path
    testcase.root
  end

  def self.page_document
    path = Brief.example_path.join("docs","page.html.md")
    Brief::Document.new(path)
  end

  def self.example_document
    path = Brief.example_path.join("docs","epics","epic.html.md")
    Brief::Document.new(path)
  end

  def self.testcase
    @example ||= Brief::Briefcase.new(root:spec_root.join("fixtures","example"))
  end
end

RSpec.configure do |config|
  config.mock_with :rspec
  config.include Rack::Test::Methods
  config.include TestHelpers
end

ENV['BRIEF_APPS_PATH'] = Brief.spec_root.join("fixtures","apps").to_s

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
brief-1.6.1 spec/spec_helper.rb
brief-1.6.0 spec/spec_helper.rb