Sha256: a22f23078fda2546016358a1dbb151892d1382b687d2f8276bf083a3a8b92298

Contents?: true

Size: 938 Bytes

Versions: 15

Compression:

Stored size: 938 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.concept_document
    path = Brief.example_path.join("docs","concept.html.md")
    testcase.document_at(path)
  end

  def self.page_document
    path = Brief.example_path.join("docs","page.html.md")
    testcase.document_at(path)
  end

  def self.example_document
    path = Brief.example_path.join("docs","epics","epic.html.md")
    testcase.document_at(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

15 entries across 15 versions & 1 rubygems

Version Path
brief-1.8.11 spec/spec_helper.rb
brief-1.8.10 spec/spec_helper.rb
brief-1.8.9 spec/spec_helper.rb
brief-1.8.8 spec/spec_helper.rb
brief-1.8.6 spec/spec_helper.rb
brief-1.8.5 spec/spec_helper.rb
brief-1.8.4 spec/spec_helper.rb
brief-1.8.3 spec/spec_helper.rb
brief-1.8.2 spec/spec_helper.rb
brief-1.8.1 spec/spec_helper.rb
brief-1.8.0 spec/spec_helper.rb
brief-1.7.3 spec/spec_helper.rb
brief-1.7.2 spec/spec_helper.rb
brief-1.7.1 spec/spec_helper.rb
brief-1.7.0 spec/spec_helper.rb