spec/spec_helper.rb in brief-1.3.2 vs spec/spec_helper.rb in brief-1.4.1
- old
+ new
@@ -1,6 +1,7 @@
require 'pry'
+require 'rack/test'
require 'brief'
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
module Brief
@@ -10,14 +11,20 @@
def self.example_path
testcase.root
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.order = "random"
+ config.include Rack::Test::Methods
+ config.include TestHelpers
end