Skip to content

Commit eb0b0db

Browse files
authored
Remove extra markdown from Readme and specs (#997)
1 parent 25ac27b commit eb0b0db

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed

Readme.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,7 @@ TIPS
335335
e.g. `config.cache_store = ..., namespace: "test_#{ENV['TEST_ENV_NUMBER']}"`
336336
- Debug errors that only happen with multiple files using `--verbose` and [cleanser](https://github.com/grosser/cleanser)
337337
- `export PARALLEL_TEST_PROCESSORS=13` to override default processor count
338-
- `export ## 4.20.0 - 2025-02-28
339-
340-
### Added
341-
342-
PARALLEL_TEST_MULTIPLY_PROCESSES
343-
=.5` to override default processor multiplier
338+
- `export PARALLEL_TEST_MULTIPLY_PROCESSES=.5` to override default processor multiplier
344339
- Shell alias: `alias prspec='parallel_rspec -m 2 --'`
345340
- [Spring] Add the [spring-commands-parallel-tests](https://github.com/DocSpring/spring-commands-parallel-tests) gem to your `Gemfile` to get `parallel_tests` working with Spring.
346341
- `--first-is-1` will make the first environment be `1`, so you can test while running your full suite.<br/>

spec/parallel_tests_spec.rb

+7-13
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def call(count)
4141
allow(Parallel).to receive(:multiple).and_return(default_multiple)
4242
end
4343

44+
after do
45+
ENV.delete('PARALLEL_TEST_MULTIPLY_PROCESSES')
46+
end
47+
4448
def call(multiple)
4549
ParallelTests.determine_multiple(multiple)
4650
end
@@ -54,26 +58,16 @@ def call(multiple)
5458
end
5559

5660
it "uses the processor multiple from ENV before Parallel" do
57-
ENV['## 4.20.0 - 2025-02-28
58-
59-
### Added
60-
61-
PARALLEL_TEST_MULTIPLY_PROCESSES
62-
'] = '0.75'
63-
expect(call(nil)).to eq(1)
61+
ENV['PARALLEL_TEST_MULTIPLY_PROCESSES'] = '0.75'
62+
expect(call(nil)).to eq(0.75)
6463
end
6564

6665
it "does not use blank multiple" do
6766
expect(call(' ')).to eq(default_multiple)
6867
end
6968

7069
it "does not use blank env" do
71-
ENV['## 4.20.0 - 2025-02-28
72-
73-
### Added
74-
75-
PARALLEL_TEST_MULTIPLY_PROCESSES
76-
'] = ' '
70+
ENV['PARALLEL_TEST_MULTIPLY_PROCESSES'] = ' '
7771
expect(call(nil)).to eq(default_multiple)
7872
end
7973
end

0 commit comments

Comments
 (0)