spec/lib/brief/document_spec.rb in brief-1.7.2 vs spec/lib/brief/document_spec.rb in brief-1.7.3
- old
+ new
@@ -3,9 +3,12 @@
describe "The Brief Document" do
let(:sample) do
Brief.example_document
end
+ it "wont let me create a document outside of the briefcase" do
+ expect(lambda { Brief::Document.new("/test.html.md").in_briefcase(Brief.testcase) }).to raise_error
+ end
it "creates a new doc if the path doesn't exist" do
begin
new_path = Brief.testcase.docs_path.join("newly-created.html.md")
doc = Brief::Document.new(new_path)
doc.data= {}