Sha256: e034d37c98c796486762d4cae1a77e1d6ee5f22f18c574f8e2698e43c2deef6a

Contents?: true

Size: 923 Bytes

Versions: 31

Compression:

Stored size: 923 Bytes

Contents

require "spec_helper"

describe "Packaged Apps" do
  let(:sample) do
    Brief::Briefcase.new(app: "sample")
  end

  let(:blueprint) do
    Brief::Briefcase.new(app: "blueprint", root: Brief.spec_root.join('fixtures','example'))
  end

  it "renders documentation for the app" do
    rendered = blueprint.render_documentation.epic.rendered
    expect(rendered).to include("Feature Epics")
  end

  it "should find the right path for an app name" do
    expect(Brief::Apps.path_for("blueprint")).to be_exist
  end

  it "should be using the blueprint app" do
    expect(blueprint).to be_uses_app
  end

  it "should pick up the view defined" do
    expect(Brief.views.key?(:summary)).to eq(true)
  end

  it "should be using the blueprint app" do
    expect(sample).to be_uses_app
  end

  it "should find the test app, and the gem apps" do
    expect(Brief::Apps.available_apps).to include("blueprint","sample")
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
brief-1.14.2 spec/lib/brief/apps_spec.rb
brief-1.14.1 spec/lib/brief/apps_spec.rb
brief-1.14.0 spec/lib/brief/apps_spec.rb
brief-1.13.2 spec/lib/brief/apps_spec.rb
brief-1.13.1 spec/lib/brief/apps_spec.rb
brief-1.12.9 spec/lib/brief/apps_spec.rb
brief-1.12.8 spec/lib/brief/apps_spec.rb
brief-1.12.7 spec/lib/brief/apps_spec.rb
brief-1.12.6 spec/lib/brief/apps_spec.rb
brief-1.12.5 spec/lib/brief/apps_spec.rb
brief-1.12.4 spec/lib/brief/apps_spec.rb
brief-1.12.3 spec/lib/brief/apps_spec.rb
brief-1.12.2 spec/lib/brief/apps_spec.rb
brief-1.12.1 spec/lib/brief/apps_spec.rb
brief-1.12.0 spec/lib/brief/apps_spec.rb
brief-1.11.10 spec/lib/brief/apps_spec.rb
brief-1.11.9 spec/lib/brief/apps_spec.rb
brief-1.11.8 spec/lib/brief/apps_spec.rb
brief-1.11.7 spec/lib/brief/apps_spec.rb
brief-1.11.6 spec/lib/brief/apps_spec.rb