This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ Breaking Changes:
26
26
* Remove support for Mocha version < 1.0. (Phil Pirozhkov, #2864 )
27
27
* Remove deprecated ` PendingExampleFixedNotification ` and
28
28
` PendingExampleFailedAsExpectedNotification ` classes. (Phil Pirozhkov, #2864 )
29
+ * Remove deprecated ` rerun_argument ` example method. (Phil Pirozhkov, #2864 )
29
30
30
31
Enhancements:
31
32
Original file line number Diff line number Diff line change @@ -105,15 +105,6 @@ def location_rerun_argument
105
105
end
106
106
end
107
107
108
- # Returns the location-based argument that can be passed to the `rspec` command to rerun this example.
109
- #
110
- # @deprecated Use {#location_rerun_argument} instead.
111
- # @note If there are multiple examples identified by this location, they will use {#id}
112
- # to rerun instead, but this method will still return the location (that's why it is deprecated!).
113
- def rerun_argument
114
- location_rerun_argument
115
- end
116
-
117
108
# @return [String] the unique id of this example. Pass
118
109
# this at the command line to re-run this exact example.
119
110
def id
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ def metadata_hash(*args)
32
32
end
33
33
end
34
34
35
- describe "#rerun_argument " do
35
+ describe "#location_rerun_argument " do
36
36
it "returns the location-based rerun argument" do
37
37
allow ( RSpec . configuration ) . to receive_messages ( :loaded_spec_files => [ __FILE__ ] )
38
38
example = RSpec . describe . example
39
- expect ( example . rerun_argument ) . to eq ( "#{ RSpec ::Core ::Metadata . relative_path ( __FILE__ ) } :#{ __LINE__ - 1 } " )
39
+ expect ( example . location_rerun_argument ) . to eq ( "#{ RSpec ::Core ::Metadata . relative_path ( __FILE__ ) } :#{ __LINE__ - 1 } " )
40
40
end
41
41
end
42
42
You can’t perform that action at this time.
0 commit comments