spec/lib/brief/document_spec.rb in brief-1.8.11 vs spec/lib/brief/document_spec.rb in brief-1.8.12
- old
+ new
@@ -52,9 +52,21 @@
expect(extracted).to eq("Blueprint Epic Example")
end
end
context "defining sections" do
+ it "has sections" do
+ expect(sample).to be_has_sections
+ end
+
+ it "gives me info about the section headings" do
+ expect(sample.section_headings).to include("user_stories")
+ end
+
+ it "has the information from the sections" do
+ expect(sample.sections_data).not_to be_empty
+ end
+
it "lets me define content sections" do
expect(sample.sections).not_to be_empty
expect(sample.sections.user_stories).to be_present
expect(sample.sections.user_stories.fragment.name).to eq("section")
expect(sample.sections.user_stories.fragment.css("article").length).to eq(3)