spec/lib/brief/model_spec.rb in brief-1.3.2 vs spec/lib/brief/model_spec.rb in brief-1.4.1

- old
+ new

@@ -3,9 +3,13 @@ describe "The Brief Model" do let(:briefcase) { Brief.testcase } let(:epic) { briefcase.epics.first } let(:user_story) { briefcase.user_stories.first } + it "exposes information about its schema" do + expect(epic.class.to_schema.keys).to include(:content, :metadata, :name, :class_name, :type_alias) + end + context "DSL Style Declarations" do it "picks up a definition of 'User Story'" do expect(briefcase.model("User Story")).to be_present end