ok i actually want a bundled asset

This commit is contained in:
John Bintz 2011-11-22 10:51:46 -05:00
parent 7d75b5466f
commit 2316041580
2 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ module Jasmine::Headless
end end
def files def files
required_files.collect { |file| file.send(:required_assets).collect { |asset| asset.pathname.to_s } }.flatten.uniq required_files.collect { |file| file.to_a.collect { |asset| asset.pathname.to_s } }.flatten.uniq
end end
def spec_files def spec_files
@ -233,7 +233,7 @@ module Jasmine::Headless
end end
def add_path(path, type) def add_path(path, type)
asset = sprockets_environment.find_asset(path, :bundle => false) asset = sprockets_environment.find_asset(path)
@required_files << asset @required_files << asset

View File

@ -122,8 +122,8 @@ describe Jasmine::Headless::FilesList do
let(:path_two) { 'two' } let(:path_two) { 'two' }
let(:path_three) { 'three' } let(:path_three) { 'three' }
let(:file_one) { stub(:required_assets => [ asset_one, asset_two ] ) } let(:file_one) { stub(:to_a => [ asset_one, asset_two ] ) }
let(:file_two) { stub(:required_assets => [ asset_two, asset_three ] ) } let(:file_two) { stub(:to_a => [ asset_two, asset_three ] ) }
let(:asset_one) { stub(:pathname => Pathname(path_one)) } let(:asset_one) { stub(:pathname => Pathname(path_one)) }
let(:asset_two) { stub(:pathname => Pathname(path_two)) } let(:asset_two) { stub(:pathname => Pathname(path_two)) }