Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit a9a3d38

Browse files
committed
Add integration specs for recently modified ordering
1 parent 42b0abf commit a9a3d38

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

spec/integration/order_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,17 @@
130130
end
131131
end
132132

133+
describe '--order rand --order recently-modified' do
134+
it 'overrides random ordering with recently-modified option' do
135+
2.times { run_command 'spec/order_spec.rb --order rand --order recently-modified -f doc' }
136+
137+
expect(stdout.string).not_to match(/Randomized with seed/)
138+
139+
top_level_groups { |first_run, second_run| expect(first_run).to eq(second_run) }
140+
nested_groups { |first_run, second_run| expect(first_run).to eq(second_run) }
141+
end
142+
end
143+
133144
describe '--order defined on CLI with --order rand in .rspec' do
134145
after { remove '.rspec' }
135146

0 commit comments

Comments
 (0)