Sha256: 799452459def9ae2af1b6b50cbee22cd30a168f23d171d48f4cc694dceeccc4d

Contents?: true

Size: 717 Bytes

Versions: 3

Compression:

Stored size: 717 Bytes

Contents

require "spec_helper"

describe Teaspoon::Engine do

  subject { Teaspoon::Engine }

  it "has been isolated with a name" do
    expect(subject.isolated?).to be(true)
    expect(subject.railtie_name).to eql("teaspoon")
  end

  it "defaults the root path" do
    # this has to add spec/dummy as we set it manually
    expect(Teaspoon.configuration.root.join('spec/dummy').to_s).to eq(Rails.root.to_s)
  end

  it "adds asset paths from configuration" do
    expect(Rails.application.config.assets.paths).to include(Teaspoon.configuration.root.join("spec/javascripts").to_s)
    expect(Rails.application.config.assets.paths).to include(Teaspoon.configuration.root.join("spec/javascripts/stylesheets").to_s)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
teaspoon-0.9.1 spec/teaspoon/engine_spec.rb
teaspoon-0.9.0 spec/teaspoon/engine_spec.rb
teaspoon-0.8.0 spec/teaspoon/engine_spec.rb