From 5996fd145ff8d774573e5a0ef22c3b4f0611196f Mon Sep 17 00:00:00 2001 From: Simon Knox Date: Thu, 14 Feb 2019 17:54:34 +1100 Subject: Only load selected syntax highlight CSS Compile highlight CSS separately Move highlight-specific mixins out of mixins.scss Rename solarized themes to match theme name as this was a smaller change than changing all instances to snake_case --- spec/views/layouts/_head.html.haml_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec') diff --git a/spec/views/layouts/_head.html.haml_spec.rb b/spec/views/layouts/_head.html.haml_spec.rb index 9d1efcabb80..590dbe7da1f 100644 --- a/spec/views/layouts/_head.html.haml_spec.rb +++ b/spec/views/layouts/_head.html.haml_spec.rb @@ -62,6 +62,14 @@ describe 'layouts/_head' do end end + it 'adds selected syntax highlight stylesheet' do + allow_any_instance_of(PreferencesHelper).to receive(:user_color_scheme).and_return("solarised-light") + + render + + expect(rendered).to match('') + end + def stub_helper_with_safe_string(method) allow_any_instance_of(PageLayoutHelper).to receive(method) .and_return(%q{foo" http-equiv="refresh}.html_safe) -- cgit v1.2.1 From a1e0f387bfc7c01e41c487b598c3828fa89da397 Mon Sep 17 00:00:00 2001 From: Simon Knox Date: Fri, 22 Feb 2019 11:58:37 +1100 Subject: Move highlight themes to subfolder --- spec/views/layouts/_head.html.haml_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/views/layouts/_head.html.haml_spec.rb b/spec/views/layouts/_head.html.haml_spec.rb index 590dbe7da1f..cbb4199954a 100644 --- a/spec/views/layouts/_head.html.haml_spec.rb +++ b/spec/views/layouts/_head.html.haml_spec.rb @@ -67,7 +67,7 @@ describe 'layouts/_head' do render - expect(rendered).to match('') + expect(rendered).to match('') end def stub_helper_with_safe_string(method) -- cgit v1.2.1