Skip to content

Commit

Permalink
Use -W:strict_unused_block when running tests on Ruby 3.4+
Browse files Browse the repository at this point in the history
This is both when running the tests for the stack itself, as well
as the tests for the generated application.
  • Loading branch information
jeremyevans committed Dec 18, 2024
1 parent b10819c commit 583a5b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ end
spec = proc do |type|
desc "Run #{type} specs"
task :"#{type}_spec" do
sh "#{FileUtils::RUBY} -w spec/#{type}.rb"
sh "#{FileUtils::RUBY} -w #{'-W:strict_unused_block' if RUBY_VERSION >= '3.4'} spec/#{type}.rb"
end

desc "Run #{type} specs with coverage"
Expand Down Expand Up @@ -161,7 +161,7 @@ end
Rake::Task["default"].clear
desc "Run specs to make sure stack works properly"
task :default do
sh "#{FileUtils::RUBY} -w stack-spec/stack_spec.rb"
sh "#{FileUtils::RUBY} -w #{'-W:strict_unused_block' if RUBY_VERSION >= '3.4'} stack-spec/stack_spec.rb"
end

desc "Run specs to make sure stack works properly, with debugging enabled"
Expand Down

0 comments on commit 583a5b7

Please sign in to comment.