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

Commit 5069475

Browse files
committed
Use more explicit way of shuffling specs.
1 parent 7f607f0 commit 5069475

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Deliberately named _specs.rb to avoid being loaded except when specified
22

33
RSpec.configure do |c|
4-
c.register_ordering(:global, &:shuffle)
4+
c.register_ordering(:shuffled, &:shuffle)
55
end
66

7-
10.times do |i|
8-
RSpec.describe "Group #{i}" do
9-
it("passes") { }
10-
it("fails") { fail }
7+
RSpec.describe "Group", :order => :shuffled do
8+
10.times do |i|
9+
it("passes #{i}") { }
10+
it("fails #{i}") { fail }
1111
end
1212
end

0 commit comments

Comments
 (0)