Sha256: 11f9ce103d01aca13c2a3ae8cd815f223b49bae48d7f25277106e2def474f7f9
Contents?: true
Size: 1.07 KB
Versions: 1
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(3) end it "loads the model definitions from the DSL in the config file" do expect(Brief::Model.classes.length).to eq(3) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brief-1.5.0 | spec/lib/brief/briefcase_spec.rb |