98
98
describe ".configure" do
99
99
it "yields the current configuration" do
100
100
RSpec . configure do |config |
101
- expect ( config ) . to equal ( RSpec :: configuration )
101
+ expect ( config ) . to equal ( RSpec . configuration )
102
102
end
103
103
end
104
104
end
141
141
end
142
142
143
143
it 'removes the previously assigned example group constants' do
144
- RSpec . describe "group"
144
+ RSpec . describe "group"
145
145
146
- expect {
147
- RSpec . world . reset
148
- } . to change ( RSpec ::ExampleGroups , :constants ) . to ( [ ] )
146
+ expect {
147
+ RSpec . world . reset
148
+ } . to change ( RSpec ::ExampleGroups , :constants ) . to ( [ ] )
149
149
end
150
150
end
151
151
@@ -256,7 +256,7 @@ def reporter
256
256
257
257
RSpec . clear_examples
258
258
259
- RSpec . configuration . deprecation_stream = StringIO . new ( deprecations = "" . dup )
259
+ RSpec . configuration . deprecation_stream = StringIO . new ( deprecations = + "" )
260
260
261
261
RSpec . describe do
262
262
example { RSpec . deprecate ( "second deprecation" ) }
@@ -270,7 +270,7 @@ def reporter
270
270
end
271
271
272
272
it 'does not clear shared examples' do
273
- RSpec . shared_examples_for ( "shared" ) { }
273
+ RSpec . shared_examples_for ( "shared" ) { }
274
274
275
275
RSpec . clear_examples
276
276
@@ -281,8 +281,8 @@ def reporter
281
281
282
282
it 'uses only one thread local variable' , :run_last do
283
283
# Trigger features that use thread locals...
284
- aggregate_failures { }
285
- RSpec . shared_examples_for ( "something" ) { }
284
+ aggregate_failures { }
285
+ RSpec . shared_examples_for ( "something" ) { }
286
286
287
287
expect ( Thread . current . keys . map ( &:to_s ) . grep ( /rspec/i ) . count ) . to eq ( 1 )
288
288
end
@@ -325,4 +325,3 @@ def reporter
325
325
expect ( status . exitstatus ) . to eq ( 0 )
326
326
end
327
327
end
328
-
0 commit comments