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 +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,6 @@ def self.reset_memoized
348
348
@_descendants = nil
349
349
@parent_groups = nil
350
350
@declaration_line_numbers = nil
351
- @before_context_ivars = nil
352
351
end
353
352
354
353
# Adds an example to the example group
Original file line number Diff line number Diff line change 4
4
5
5
RSpec ::Support . require_rspec_support "ruby_features"
6
6
7
+ # :nocov:
7
8
unless RSpec ::Support . respond_to? ( :require_rspec_core )
8
9
RSpec ::Support . define_optimized_require_for_rspec ( :core ) { |f | require_relative "../#{ f } " }
9
10
end
11
+ # :nocov:
10
12
11
13
RSpec ::Support . require_rspec_core "shell_escape"
12
14
Original file line number Diff line number Diff line change @@ -1796,9 +1796,7 @@ def group_ids group
1796
1796
1797
1797
group . add_example group . examples . first
1798
1798
expect ( group . examples . length ) . to eq ( 2 )
1799
-
1800
- new_ids = group_ids group
1801
- new_ids . each_with_index { |id , idx | expect ( id ) . to_not eq ( original_ids [ idx ] ) }
1799
+ expect ( original_ids ) . to_not eq ( group_ids ( group ) )
1802
1800
end
1803
1801
1804
1802
it 'allows removing examples' do
@@ -1813,9 +1811,7 @@ def group_ids group
1813
1811
1814
1812
group . remove_example group . examples . first
1815
1813
expect ( group . examples . length ) . to eq ( 0 )
1816
-
1817
- new_ids = group_ids group
1818
- new_ids . each_with_index { |id , idx | expect ( id ) . to_not eq ( original_ids [ idx ] ) }
1814
+ expect ( original_ids ) . to_not eq ( group_ids ( group ) )
1819
1815
end
1820
1816
end
1821
1817
end
You can’t perform that action at this time.
0 commit comments