spec/spec_helper.rb in brief-1.6.1 vs spec/spec_helper.rb in brief-1.7.0
- old
+ new
@@ -11,17 +11,22 @@
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")
- Brief::Document.new(path)
+ testcase.document_at(path)
end
def self.example_document
path = Brief.example_path.join("docs","epics","epic.html.md")
- Brief::Document.new(path)
+ testcase.document_at(path)
end
def self.testcase
@example ||= Brief::Briefcase.new(root:spec_root.join("fixtures","example"))
end