Sha256: 69a06c0f97935eaf43a2a696e544054476f436d87e294e37687c6be4eb8a919e
Contents?: true
Size: 911 Bytes
Versions: 3
Compression:
Stored size: 911 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 describe "Sprockets.javascript" do let(:js_spot_checks) do %w[ Firehose.Transport Firehose.version window.Firehose ] end it "should compile javascript" do Firehose::Assets::Sprockets.javascript.should include(*js_spot_checks) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
firehose-1.2.13 | spec/lib/assets_spec.rb |
firehose-1.2.12 | spec/lib/assets_spec.rb |
firehose-1.2.11 | spec/lib/assets_spec.rb |