We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent b5c48be commit 9f522f9Copy full SHA for 9f522f9
spec/lib/sprockets/server_spec.rb
@@ -22,14 +22,22 @@ def app
22
end
23
24
it 'serves assets with complex sprockets requires' do
25
- assets = app.sprockets['complex_sprockets'].to_a.map(&:logical_path)
+ asset = app.sprockets['complex_sprockets']
26
+ expect(asset).to be_truthy
27
+
28
+ assets = asset.to_a.map do |sub_asset|
29
+ sub_asset.logical_path.gsub(/\.self\.js$/, '.js')
30
+ end
31
32
%w[
33
no_requires.js
34
jst_file.js
35
required_tree_test/required_file1.js
36
required_tree_test/required_file2.js
37
file_with_directives.js
- ].each { |logical_path| expect(assets).to include(logical_path) }
38
+ ].each do |logical_path|
39
+ expect(assets).to include(logical_path)
40
41
42
43
describe 'source maps' do
0 commit comments