Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Dec 17, 2024
1 parent b1f9b8a commit 86a64e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/quickdraw.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

Quickdraw.configure do |config|
# config here
end

# require 'simplecov'
Expand Down
3 changes: 1 addition & 2 deletions lib/quickdraw/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ def load_tests

@tests.shuffle!(random: @random)
@tests.freeze

# Try to break up the tests into at least 20 batches per core.
@batch = [[(@tests.size / @processes / 20), 1].max, 500].min
@batch = (@tests.size / @processes / 20).clamp(1, 500)
end

def fork_processes
Expand Down
4 changes: 3 additions & 1 deletion test/assertions.test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def success!(description)
end

assert_test_fails do
assert_raises(ArgumentError) {}
assert_raises(ArgumentError) do
# no-op
end
end
end

Expand Down

0 comments on commit 86a64e5

Please sign in to comment.