Skip to content

Commit

Permalink
fix new lint errors after standardrb update
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Dec 11, 2024
1 parent 2238a51 commit 74fb6c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def dry_run
cli_options_array = @rspec_cli_options + ["--dry-run", @spec_path]

rspec_config_options = ::RSpec::Core::ConfigurationOptions.new(cli_options_array)
devnull = File.new("/dev/null", "w")
devnull = File.new(File::NULL, "w")
out = @verbose ? $stdout : devnull
err = @verbose ? $stderr : devnull

Expand Down
2 changes: 1 addition & 1 deletion spec/support/rspec_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ def with_new_rspec_environment
end

def devnull
File.new("/dev/null", "w")
File.new(File::NULL, "w")
end
end

0 comments on commit 74fb6c0

Please sign in to comment.