Sha256: a6c60c8cb4dc258b7eb54398e56f953b9babb1dbf3ebcb04b0a28c8897708d06

Contents?: true

Size: 713 Bytes

Versions: 27

Compression:

Stored size: 713 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")
  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

27 entries across 27 versions & 1 rubygems

Version Path
brief-1.9.9 spec/lib/brief/apps_spec.rb
brief-1.9.8 spec/lib/brief/apps_spec.rb
brief-1.9.7 spec/lib/brief/apps_spec.rb
brief-1.9.6 spec/lib/brief/apps_spec.rb
brief-1.9.4 spec/lib/brief/apps_spec.rb
brief-1.9.3 spec/lib/brief/apps_spec.rb
brief-1.9.2 spec/lib/brief/apps_spec.rb
brief-1.9.1 spec/lib/brief/apps_spec.rb
brief-1.9.0 spec/lib/brief/apps_spec.rb
brief-1.8.12 spec/lib/brief/apps_spec.rb
brief-1.8.11 spec/lib/brief/apps_spec.rb
brief-1.8.10 spec/lib/brief/apps_spec.rb
brief-1.8.9 spec/lib/brief/apps_spec.rb
brief-1.8.8 spec/lib/brief/apps_spec.rb
brief-1.8.6 spec/lib/brief/apps_spec.rb
brief-1.8.5 spec/lib/brief/apps_spec.rb
brief-1.8.4 spec/lib/brief/apps_spec.rb
brief-1.8.3 spec/lib/brief/apps_spec.rb
brief-1.8.2 spec/lib/brief/apps_spec.rb
brief-1.8.1 spec/lib/brief/apps_spec.rb