spec/lib/brief/document_spec.rb in brief-1.9.14 vs spec/lib/brief/document_spec.rb in brief-1.10.0
- old
+ new
@@ -21,11 +21,11 @@
FileUtils.rm_rf(new_path)
end
end
it "renders html" do
- expect(sample.to_html).to match(/h1.*User Stories.*h1\>/)
+ expect(sample.to_html).to match(/h1.*Features.*h1\>/)
end
it "renders html" do
expect(Brief.page_document.to_html).to be_present
end
@@ -57,25 +57,25 @@
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")
+ expect(sample.section_headings).to include("features")
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)
+ expect(sample.sections.features).to be_present
+ expect(sample.sections.features.fragment.name).to eq("section")
+ expect(sample.sections.features.fragment.css("article").length).to eq(3)
end
it "gives me an array of items underneath the section filled with the key value mappings i laid out" do
- items = sample.sections.user_stories.items
+ items = sample.sections.features.items
expect(items.length).to eq(3)
expect(items.map(&:components).map(&:first).uniq).to eq(["User"])
end
end
end