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

Commit 4abadd5

Browse files
committed
fixup! For removing it_should_behave_like
1 parent 6de8a44 commit 4abadd5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

features/example_groups/shared_examples.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,12 @@ Feature: shared examples
218218
And the output should contain:
219219
"""
220220
Array with 3 items
221-
it should behave like a measurable object
221+
behaves like a measurable object
222222
should return 3 from #size
223223
should return 3 from #length
224224
225225
String of 6 characters
226-
it should behave like a measurable object
226+
behaves like a measurable object
227227
should return 6 from #size
228228
should return 6 from #length
229229
"""

lib/rspec/core/example_group.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def self.define_example_group_method(name, metadata={})
314314
# @!scope class
315315
#
316316
# @see SharedExampleGroup
317-
def self.define_nested_shared_group_method(new_name, report_label="it should behave like")
317+
def self.define_nested_shared_group_method(new_name, report_label="behaves like")
318318
idempotently_define_singleton_method(new_name) do |name, *args, &customization_block|
319319
# Pass :caller so the :location metadata is set properly.
320320
# Otherwise, it'll be set to the next line because that's
@@ -329,7 +329,7 @@ def self.define_nested_shared_group_method(new_name, report_label="it should beh
329329

330330
# Generates a nested example group and includes the shared content
331331
# mapped to `name` in the nested group.
332-
define_nested_shared_group_method :it_behaves_like, "behaves like"
332+
define_nested_shared_group_method :it_behaves_like
333333

334334
# Includes shared content mapped to `name` directly in the group in which
335335
# it is declared, as opposed to `it_behaves_like`, which creates a nested

0 commit comments

Comments
 (0)