Sha256: 1fd9d6b6bf71aac4f94b96759caf62138e120acf05be67788ccf8ff6a02b6782

Contents?: true

Size: 614 Bytes

Versions: 8

Compression:

Stored size: 614 Bytes

Contents

require 'spec_helper'
require 'sprockets'

describe Firehose::Assets do
  describe ".path" do
    it "should have root path" do
      Firehose::Assets.path('poop').should == File.expand_path('../../../lib/assets/poop', __FILE__)
    end

    it "should accept folders" do
      Firehose::Assets.path('poop').should == File.join(Firehose::Assets.path, 'poop')
    end
  end

  describe "Sprockets.configure" do
    it "should configure environment" do
      env = Firehose::Assets::Sprockets.configure Sprockets::Environment.new
      env.paths.should include(Firehose::Assets.path('javascripts'))
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
firehose-1.2.10 spec/lib/assets_spec.rb
firehose-1.2.9 spec/lib/assets_spec.rb
firehose-1.2.8 spec/lib/assets_spec.rb
firehose-1.2.7 spec/lib/assets_spec.rb
firehose-1.2.6 spec/lib/assets_spec.rb
firehose-1.2.5 spec/lib/assets_spec.rb
firehose-1.2.4 spec/lib/assets_spec.rb
firehose-1.2.3 spec/lib/assets_spec.rb