spec/acceptance/showing_spec.rb in brief-1.4.4 vs spec/acceptance/showing_spec.rb in brief-1.5.0

- old
+ new

@@ -13,6 +13,17 @@ it "shows the rendered version of the document json" do get("/view/details/epics/epic.html.md") expect(last_response.status).to eq(200) end + + it "includes raw content in details mode if asked" do + get("/view/details/epics/epic.html.md?content=true&rendered=true") + expect(json["rendered"]).not_to be_empty + expect(json["content"]).not_to be_empty + end + + it "includes rendered content in details mode if asked" do + get("/view/details/epics/epic.html.md?rendered=true") + expect(json["rendered"]).not_to be_empty + end end