spec/lib/brief/model_spec.rb in brief-1.2.0 vs spec/lib/brief/model_spec.rb in brief-1.3.0

- old
+ new

@@ -1,9 +1,9 @@ require "spec_helper" describe "The Brief Model" do - let(:briefcase) { Brief.example } + let(:briefcase) { Brief.testcase } let(:epic) { briefcase.epics.first } let(:user_story) { briefcase.user_stories.first } context "DSL Style Declarations" do it "picks up a definition of 'User Story'" do @@ -98,9 +98,14 @@ expect(epic.class.defined_actions).to include(:custom_action) end it "users the actions block to define CLI dispatchers (dsl)" do expect(user_story.class.defined_actions).to include(:custom_action) + end + + it "lets me define a helper method which utilizes all the extracted data and content structure" do + expect(epic.user_stories.length).to eq(3) + expect(epic.user_stories.map(&:persona)).to include("User") end end context "Section Mappings" do it "defines a section mapping for User Stories" do