File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ module Concurrent
142142end
143143end
144144
145- if Concurrent . allow_c_extensions ?
145+ if Concurrent . c_extensions_loaded ?
146146RSpec . describe CAtomicBoolean do
147147it_should_behave_like :atomic_boolean
148148end
@@ -165,7 +165,7 @@ module Concurrent
165165it 'inherits from JavaAtomicBoolean' do
166166expect ( AtomicBoolean . ancestors ) . to include ( JavaAtomicBoolean )
167167end
168- elsif Concurrent . allow_c_extensions ?
168+ elsif Concurrent . c_extensions_loaded ?
169169it 'inherits from CAtomicBoolean' do
170170expect ( AtomicBoolean . ancestors ) . to include ( CAtomicBoolean )
171171end
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ module Concurrent
204204end
205205end
206206
207- if Concurrent . allow_c_extensions ?
207+ if Concurrent . c_extensions_loaded ?
208208RSpec . describe CAtomicFixnum do
209209it_should_behave_like :atomic_fixnum
210210end
@@ -227,7 +227,7 @@ module Concurrent
227227it 'inherits from JavaAtomicFixnum' do
228228expect ( AtomicFixnum . ancestors ) . to include ( JavaAtomicFixnum )
229229end
230- elsif Concurrent . allow_c_extensions ?
230+ elsif Concurrent . c_extensions_loaded ?
231231it 'inherits from CAtomicFixnum' do
232232expect ( AtomicFixnum . ancestors ) . to include ( CAtomicFixnum )
233233end
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ module Concurrent
163163it_should_behave_like :atomic_reference
164164end
165165
166- if Concurrent . allow_c_extensions ?
166+ if Concurrent . c_extensions_loaded ?
167167RSpec . describe CAtomicReference do
168168it_should_behave_like :atomic_reference
169169end
@@ -190,7 +190,7 @@ module Concurrent
190190it 'inherits from JavaAtomicReference' do
191191expect ( described_class . ancestors ) . to include ( Concurrent ::JavaAtomicReference )
192192end
193- elsif Concurrent . allow_c_extensions ?
193+ elsif Concurrent . c_extensions_loaded ?
194194it 'inherits from CAtomicReference' do
195195expect ( described_class . ancestors ) . to include ( Concurrent ::CAtomicReference )
196196end
You can’t perform that action at this time.
0 commit comments