@@ -220,7 +220,7 @@ def arity_kw(x, y:1, z:2); end
220
220
expect ( valid? ( nil , :a => 1 ) ) . to eq ( false )
221
221
end
222
222
223
- it 'mentions the invalid keyword args in the error' , :pending => RSpec :: Support :: Ruby . jruby? && ! RSpec :: Support :: Ruby . jruby_9000? do
223
+ it 'mentions the invalid keyword args in the error' do
224
224
expect ( error_for ( nil , :a => 0 , :b => 1 ) ) . to \
225
225
eq ( "Invalid keyword arguments provided: a, b" )
226
226
end
@@ -240,7 +240,7 @@ def arity_kw(x, y:1, z:2); end
240
240
expect ( args ) . to eq ( [ nil , { :y => 1 } ] )
241
241
end
242
242
243
- it 'mentions the arity and optional kw args in the description' , :pending => RSpec :: Support :: Ruby . jruby? && ! RSpec :: Support :: Ruby . jruby_9000? do
243
+ it 'mentions the arity and optional kw args in the description' do
244
244
expect ( signature_description ) . to eq ( "arity of 1 and optional keyword args (:y, :z)" )
245
245
end
246
246
@@ -321,7 +321,7 @@ def arity_kw(x, y = {}, z:2); end
321
321
expect ( valid? ( nil , 'a' => 1 , :b => 2 , :z => 3 ) ) . to eq ( false )
322
322
end
323
323
324
- it 'mentions the invalid keyword args in the error' , :pending => RSpec :: Support :: Ruby . jruby? && ! RSpec :: Support :: Ruby . jruby_9000? do
324
+ it 'mentions the invalid keyword args in the error' do
325
325
expect ( error_for ( 1 , 2 , :a => 0 ) ) . to eq ( "Invalid keyword arguments provided: a" )
326
326
expect ( error_for ( 1 , :a => 0 ) ) . to eq ( "Invalid keyword arguments provided: a" )
327
327
expect ( error_for ( 1 , 'a' => 0 , :b => 0 ) ) . to eq ( "Invalid keyword arguments provided: b" )
@@ -342,7 +342,7 @@ def arity_kw(x, y = {}, z:2); end
342
342
expect ( args ) . to eq ( [ nil , nil , { :y => 1 } ] )
343
343
end
344
344
345
- it 'mentions the arity and optional kw args in the description' , :pending => RSpec :: Support :: Ruby . jruby? && ! RSpec :: Support :: Ruby . jruby_9000? do
345
+ it 'mentions the arity and optional kw args in the description' do
346
346
expect ( signature_description ) . to eq ( "arity of 1 to 2 and optional keyword args (:z)" )
347
347
end
348
348
0 commit comments