Sha256: 2a1865d5230ba9fc14a9f19dc66c8e16771a7929d75b73e04966f7a83ea0944d
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
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 it "defines methods which combine models in arbitrary ways" do expect(briefcase.custom_aggregator).to be_a(Hash) end it "reads the settings.yml" do expect(briefcase.settings.settings).to be_present end context "Model Loading" do it "loads the model definitions from the models folder" do expect(Brief::Model.classes.length).to eq(4) end it "loads the model definitions from the DSL in the config file" do expect(Brief::Model.classes.length).to eq(4) 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(8) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brief-1.5.2 | spec/lib/brief/briefcase_spec.rb |
brief-1.5.1 | spec/lib/brief/briefcase_spec.rb |