File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
lib/critical_path_css/rails Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1
1
defaults : &defaults
2
2
base_url : http://0.0.0.0:9292
3
+ manifest_name : application
3
4
css_path : /test.css
4
5
routes :
5
6
- /
Original file line number Diff line number Diff line change 63
63
end
64
64
end
65
65
66
+ context 'when no paths are specified' do
67
+ let ( :config_file ) {
68
+ <<~CONFIG
69
+ defaults: &defaults
70
+ base_url: http://0.0.0.0:9292
71
+ manifest_name: application
72
+ routes:
73
+ - /
74
+
75
+ development:
76
+ <<: *defaults
77
+
78
+ test:
79
+ <<: *defaults
80
+ CONFIG
81
+ }
82
+
83
+ it 'sets css_path with the path' do
84
+ expect ( subject . config [ 'css_path' ] ) . to eq '/app/spec/internal/public/test.css'
85
+ end
86
+
87
+ it 'leaves css_paths empty' do
88
+ expect ( subject . config [ 'css_paths' ] ) . to eq [ ]
89
+ end
90
+ end
91
+
66
92
context 'when single css_path and multiple css_paths are both specified' do
67
93
let ( :config_file ) {
68
94
<<~CONFIG
You can’t perform that action at this time.
0 commit comments