Sha256: fcfb47c60fb405dbd3b75e50a89f0ee2b3e69a17cd9329a53089e5843728a216

Contents?: true

Size: 1.02 KB

Versions: 24

Compression:

Stored size: 1.02 KB

Contents

require "spec_helper"

module Middleman
  class Extension
    def self.method_missing(*args); end
    def method_missing(*args); end
  end
end

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

24 entries across 24 versions & 1 rubygems

Version Path
brief-1.17.14 spec/lib/brief/apps_spec.rb
brief-1.17.13 spec/lib/brief/apps_spec.rb
brief-1.17.12 spec/lib/brief/apps_spec.rb
brief-1.17.11 spec/lib/brief/apps_spec.rb
brief-1.17.10 spec/lib/brief/apps_spec.rb
brief-1.17.9 spec/lib/brief/apps_spec.rb
brief-1.17.8 spec/lib/brief/apps_spec.rb
brief-1.17.7 spec/lib/brief/apps_spec.rb
brief-1.17.5 spec/lib/brief/apps_spec.rb
brief-1.17.4 spec/lib/brief/apps_spec.rb
brief-1.17.3 spec/lib/brief/apps_spec.rb
brief-1.17.2 spec/lib/brief/apps_spec.rb
brief-1.17.1 spec/lib/brief/apps_spec.rb
brief-1.17.0 spec/lib/brief/apps_spec.rb
brief-1.16.2 spec/lib/brief/apps_spec.rb
brief-1.16.1 spec/lib/brief/apps_spec.rb
brief-1.16.0 spec/lib/brief/apps_spec.rb
brief-1.15.5 spec/lib/brief/apps_spec.rb
brief-1.15.4 spec/lib/brief/apps_spec.rb
brief-1.15.3 spec/lib/brief/apps_spec.rb