File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ def initialize!
43
43
44
44
def initialize_dev!
45
45
Rails . env = "development"
46
+ Dir . chdir ( File . join ( File . dirname ( __FILE__ ) , '../../../' ) )
46
47
@app . initialize!
47
48
end
48
49
@@ -166,6 +167,7 @@ def test_line_comments_active_in_dev
166
167
initialize_dev!
167
168
168
169
css_output = render_asset ( "css_scss_handler.css" )
170
+
169
171
assert_match %r{/* line 1} , css_output
170
172
assert_match %r{.+/sassc-rails/test/dummy/app/assets/stylesheets/css_scss_handler.css.scss} , css_output
171
173
end
@@ -191,7 +193,7 @@ def test_css_compressor_config_item_is_honored_if_not_development_mode
191
193
def test_css_compressor_config_item_may_be_nil_in_test_mode
192
194
@app . config . assets . css_compressor = nil
193
195
initialize!
194
- assert_equal nil , Rails . application . config . assets . css_compressor
196
+ assert_nil Rails . application . config . assets . css_compressor
195
197
end
196
198
197
199
def test_css_compressor_is_defined_in_test_mode
You can’t perform that action at this time.
0 commit comments