Sha256: ba80afc94266b755ddb85da9eaf924f55141c33cd44b0c6f8ef5cc254be22fd2
Contents?: true
Size: 1.11 KB
Versions: 9
Compression:
Stored size: 1.11 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 # Need to improve this context "Model Loading" do it "loads the model definitions from the models and the apps folder" do expect(Brief::Model.classes).not_to be_empty end it "loads the model definitions from the DSL in the config file" do expect(Brief::Model.classes).not_to be_empty 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
9 entries across 9 versions & 1 rubygems