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

Commit 67923ba

Browse files
committed
change uniq to uniq! as the intended operation.
Fix a typo
1 parent 377d284 commit 67923ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/autotest/rspec2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def initialize
2020
self.completed_re = /\n(?:\e\[\d*m)?\d* examples?/m
2121
end
2222

23-
# Adds conventional spec-to-file mappings to Autotest configuation.
23+
# Adds conventional spec-to-file mappings to Autotest configuration.
2424
def setup_rspec_project_mappings
2525
add_mapping(%r%^spec/.*_spec\.rb$%) { |filename, _|
2626
filename

lib/rspec/core/world.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def initialize(configuration=RSpec.configuration)
1414
hash[group] = begin
1515
examples = group.examples.dup
1616
examples = filter_manager.prune(examples)
17-
examples.uniq
17+
examples.uniq!
1818
examples.extend(Extensions::Ordered::Examples)
1919
end
2020
}

0 commit comments

Comments
 (0)