Sha256: 0a1a6f2ce668f517c7b6afdcab3970e7a040ddc6f891080129aca32dc267c1f3
Contents?: true
Size: 880 Bytes
Versions: 4
Compression:
Stored size: 880 Bytes
Contents
require "spec_helper" describe "The Briefcase" do let(:briefcase) { Brief.testcase } it "has a root path" do expect(briefcase.root).to be_exist end it "points to a file repository" do expect(briefcase.repository).to be_a(Brief::Repository) end context "Model Loading" do it "loads the model definitions from the models folder" do expect(Brief::Model.classes.length).to eq(2) end it "loads the model definitions from the DSL in the config file" do expect(Brief::Model.classes.length).to eq(2) end it "caches the output" do object_id = briefcase.epics.object_id expect(briefcase.epics.object_id).to eq(object_id) end end context "Document Mappings" do it "has all of the documents" do expect(briefcase.epics.length).to eq(1) expect(briefcase.documents.length).to eq(7) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
brief-1.4.4 | spec/lib/brief/briefcase_spec.rb |
brief-1.4.2 | spec/lib/brief/briefcase_spec.rb |
brief-1.4.1 | spec/lib/brief/briefcase_spec.rb |
brief-1.3.2 | spec/lib/brief/briefcase_spec.rb |