1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core/kernel
Jeremy Evans 4f7b435c95 Support obj.clone(freeze: true) for freezing clone
This freezes the clone even if the receiver is not frozen.  It
is only for consistency with freeze: false not freezing the clone
even if the receiver is frozen.

Because Object#clone is now partially implemented in Ruby and
not fully implemented in C, freeze: nil must be supported to
provide the default behavior of only freezing the clone if the
receiver is frozen.

This requires modifying delegate and set, to set freeze: nil
instead of freeze: true as the keyword parameter for
initialize_clone.  Those are the two libraries in stdlib that
override initialize_clone.

Implements [Feature #16175]
2020-03-22 09:30:07 -07:00
..
fixtures Warn non-nil $/ [Feature #14240] 2020-02-23 13:37:40 +09:00
shared Update to ruby/spec@d419e74 2019-12-27 16:46:08 +01:00
__callee___spec.rb
__dir___spec.rb Fix version guard in __dir__ spec 2020-01-28 18:01:59 +01:00
__method___spec.rb
abort_spec.rb
Array_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
at_exit_spec.rb
autoload_spec.rb Update to ruby/spec@9a501a8 2019-05-28 22:41:48 +02:00
backtick_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
binding_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
block_given_spec.rb
caller_locations_spec.rb Update to ruby/spec@41bf282 2020-02-28 19:07:17 +01:00
caller_spec.rb Update to ruby/spec@41bf282 2020-02-28 19:07:17 +01:00
case_compare_spec.rb
catch_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
chomp_spec.rb Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
chop_spec.rb Update to ruby/spec@7de852d 2019-04-28 23:20:11 +02:00
class_spec.rb
clone_spec.rb Support obj.clone(freeze: true) for freezing clone 2020-03-22 09:30:07 -07:00
comparison_spec.rb
Complex_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
define_singleton_method_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
display_spec.rb
dup_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
enum_for_spec.rb
eql_spec.rb
equal_value_spec.rb
eval_spec.rb Update to ruby/spec@41bf282 2020-02-28 19:07:17 +01:00
exec_spec.rb
exit_spec.rb
extend_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
fail_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
Float_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
fork_spec.rb
format_spec.rb
freeze_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
frozen_spec.rb
gets_spec.rb
global_variables_spec.rb
gsub_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
Hash_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
inspect_spec.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
instance_of_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
instance_variable_defined_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
instance_variable_get_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
instance_variable_set_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
instance_variables_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
Integer_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
is_a_spec.rb
iterator_spec.rb
itself_spec.rb
kind_of_spec.rb
lambda_spec.rb Add spec for capturing Kernel#lambda with Kernel#method 2019-12-21 09:08:52 -05:00
load_spec.rb
local_variables_spec.rb Update to ruby/spec@28a728b 2019-10-26 20:53:01 +02:00
loop_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
match_spec.rb
method_spec.rb
methods_spec.rb
nil_spec.rb
not_match_spec.rb
object_id_spec.rb
open_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
p_spec.rb Warn non-nil $\ [Feature #14240] 2020-02-23 13:37:40 +09:00
pp_spec.rb
print_spec.rb
printf_spec.rb Update to ruby/spec@f8a2d54 2020-01-28 20:47:48 +01:00
private_methods_spec.rb
proc_spec.rb Show the name Kernel#proc in the warning message 2019-11-12 22:58:09 +09:00
protected_methods_spec.rb
public_method_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
public_methods_spec.rb
public_send_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
putc_spec.rb
puts_spec.rb
raise_spec.rb
rand_spec.rb Update to ruby/spec@4eec3dc 2019-11-30 21:26:52 +01:00
Rational_spec.rb
readline_spec.rb
readlines_spec.rb
remove_instance_variable_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
require_relative_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
require_spec.rb
respond_to_missing_spec.rb
respond_to_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
select_spec.rb Update to ruby/spec@8d74d49 2019-06-27 21:02:36 +02:00
send_spec.rb
set_trace_func_spec.rb
singleton_class_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
singleton_method_spec.rb
singleton_methods_spec.rb Fixed misspellings 2019-12-20 09:32:42 +09:00
sleep_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
spawn_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
sprintf_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
srand_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
String_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
sub_spec.rb
syscall_spec.rb
system_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
taint_spec.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
tainted_spec.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
tap_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
test_spec.rb
then_spec.rb
throw_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
to_enum_spec.rb
to_s_spec.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
trace_var_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
trap_spec.rb
trust_spec.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
untaint_spec.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
untrace_var_spec.rb
untrust_spec.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
untrusted_spec.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
warn_spec.rb Warn non-nil $/ [Feature #14240] 2020-02-23 13:37:40 +09:00
yield_self_spec.rb