Sha256: b3b87aa83a2c061540a76424194d61a2887175c0cfc965bb9bf70cb1c824ead9

Contents?: true

Size: 738 Bytes

Versions: 3

Compression:

Stored size: 738 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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
brief-1.5.2 spec/spec_helper.rb
brief-1.5.1 spec/spec_helper.rb
brief-1.5.0 spec/spec_helper.rb