Sha256: b8563c57b0d7fdda48e11646bef85e7f9f6d146afd26e1496cfd1052fd6db2c1

Contents?: true

Size: 647 Bytes

Versions: 12

Compression:

Stored size: 647 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('flash'),  Firehose::Assets.path('javascripts'))
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
firehose-1.2.2 spec/lib/assets_spec.rb
firehose-1.2.1 spec/lib/assets_spec.rb
firehose-1.2.0 spec/lib/assets_spec.rb
firehose-1.1.1 spec/lib/assets_spec.rb
firehose-1.1.0 spec/lib/assets_spec.rb
firehose-1.0.0 spec/lib/assets_spec.rb
firehose-0.2.alpha.10 spec/lib/assets_spec.rb
firehose-0.2.alpha.9 spec/lib/assets_spec.rb
firehose-0.2.alpha.8 spec/lib/assets_spec.rb
firehose-0.2.alpha.7 spec/lib/assets_spec.rb
firehose-0.2.alpha.6 spec/lib/assets_spec.rb
firehose-0.2.alpha.5 spec/lib/assets_spec.rb