Skip to content

Commit

Permalink
ensure tests set --enable-frozen-string-literal
Browse files Browse the repository at this point in the history
to prevent regressions in this support.
  • Loading branch information
flavorjones committed Nov 13, 2017
1 parent 3a93c4f commit b060679
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Bundler::GemHelper.install_tasks
Rake::TestTask.new
task :default => [:test]

task :test => :set_frozen_string_literal_option
task :set_frozen_string_literal_option do
warn "NOTE: Testing support for frozen string literals"
ENV['RUBYOPT'] += " --enable-frozen-string-literal"
end

task :'pull-css-tests' do
sh 'git subtree pull -P test/css-parsing-tests https://github.com/SimonSapin/css-parsing-tests.git master --squash'
end

0 comments on commit b060679

Please sign in to comment.