spec/lib/brief/repository_spec.rb in brief-1.3.2 vs spec/lib/brief/repository_spec.rb in brief-1.4.1
- old
+ new
@@ -5,9 +5,15 @@
it "has a bunch of documents" do
expect(repository.documents).not_to be_empty
end
+ it "gives me the document models for paths" do
+ paths = ["./concept.html.md", "wireframe.html.md", "epics/epic.html.md", Brief.example_document.path.realpath]
+
+ docs = repository.documents_at(*paths)
+ end
+
context "querying api" do
it "finds the first document matching a query" do
query = repository.where(state:"active")
expect(query.first.type).to eq("epic")
end