opal 1.6.1 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build.yml +17 -0
  3. data/CHANGELOG.md +35 -1
  4. data/Gemfile +1 -0
  5. data/HACKING.md +47 -26
  6. data/benchmark/benchmarks +415 -103
  7. data/benchmark/bm_call_overhead.yml +28 -0
  8. data/benchmark/run.rb +61 -40
  9. data/docs/cdp_common.json +3364 -0
  10. data/docs/cdp_common.md +18 -0
  11. data/docs/{headless_chrome.md → headless_browsers.md} +31 -12
  12. data/lib/opal/ast/builder.rb +1 -1
  13. data/lib/opal/builder.rb +6 -1
  14. data/lib/opal/builder_processors.rb +5 -3
  15. data/lib/opal/cache.rb +1 -7
  16. data/lib/opal/cli_options.rb +72 -58
  17. data/lib/opal/cli_runners/chrome.rb +47 -9
  18. data/lib/opal/cli_runners/chrome_cdp_interface.rb +238 -112
  19. data/lib/opal/cli_runners/compiler.rb +146 -13
  20. data/lib/opal/cli_runners/deno.rb +32 -0
  21. data/lib/opal/cli_runners/firefox.rb +350 -0
  22. data/lib/opal/cli_runners/firefox_cdp_interface.rb +212 -0
  23. data/lib/opal/cli_runners/node_modules/.bin/chrome-remote-interface.cmd +17 -0
  24. data/lib/opal/cli_runners/node_modules/.bin/chrome-remote-interface.ps1 +28 -0
  25. data/lib/opal/cli_runners/node_modules/.package-lock.json +41 -0
  26. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/LICENSE +1 -1
  27. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/README.md +322 -182
  28. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/bin/client.js +99 -114
  29. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/chrome-remote-interface.js +1 -11
  30. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/index.js +16 -11
  31. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/api.js +41 -33
  32. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/chrome.js +224 -214
  33. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/devtools.js +71 -191
  34. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/external-request.js +26 -6
  35. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/protocol.json +20788 -9049
  36. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/websocket-wrapper.js +10 -3
  37. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/package.json +59 -123
  38. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/webpack.config.js +25 -32
  39. data/lib/opal/cli_runners/node_modules/commander/History.md +298 -0
  40. data/lib/opal/cli_runners/node_modules/commander/LICENSE +22 -0
  41. data/lib/opal/cli_runners/node_modules/commander/Readme.md +217 -61
  42. data/lib/opal/cli_runners/node_modules/commander/index.js +431 -145
  43. data/lib/opal/cli_runners/node_modules/commander/package.json +16 -79
  44. data/lib/opal/cli_runners/node_modules/ws/README.md +334 -98
  45. data/lib/opal/cli_runners/node_modules/ws/browser.js +8 -0
  46. data/lib/opal/cli_runners/node_modules/ws/index.js +5 -10
  47. data/lib/opal/cli_runners/node_modules/ws/lib/buffer-util.js +129 -0
  48. data/lib/opal/cli_runners/node_modules/ws/lib/constants.js +10 -0
  49. data/lib/opal/cli_runners/node_modules/ws/lib/event-target.js +184 -0
  50. data/lib/opal/cli_runners/node_modules/ws/lib/extension.js +223 -0
  51. data/lib/opal/cli_runners/node_modules/ws/lib/limiter.js +55 -0
  52. data/lib/opal/cli_runners/node_modules/ws/lib/permessage-deflate.js +518 -0
  53. data/lib/opal/cli_runners/node_modules/ws/lib/receiver.js +607 -0
  54. data/lib/opal/cli_runners/node_modules/ws/lib/sender.js +409 -0
  55. data/lib/opal/cli_runners/node_modules/ws/lib/stream.js +180 -0
  56. data/lib/opal/cli_runners/node_modules/ws/lib/validation.js +104 -0
  57. data/lib/opal/cli_runners/node_modules/ws/lib/websocket-server.js +447 -0
  58. data/lib/opal/cli_runners/node_modules/ws/lib/websocket.js +1195 -0
  59. data/lib/opal/cli_runners/node_modules/ws/package.json +40 -106
  60. data/lib/opal/cli_runners/package-lock.json +62 -0
  61. data/lib/opal/cli_runners/package.json +1 -1
  62. data/lib/opal/cli_runners.rb +26 -4
  63. data/lib/opal/nodes/args/prepare_post_args.rb +2 -2
  64. data/lib/opal/nodes/def.rb +8 -8
  65. data/lib/opal/nodes/iter.rb +12 -12
  66. data/lib/opal/nodes/logic.rb +1 -1
  67. data/lib/opal/nodes/masgn.rb +2 -2
  68. data/lib/opal/parser/with_ruby_lexer.rb +1 -1
  69. data/lib/opal/paths.rb +14 -0
  70. data/lib/opal/rewriter.rb +2 -0
  71. data/lib/opal/rewriters/forward_args.rb +52 -4
  72. data/lib/opal/rewriters/targeted_patches.rb +94 -0
  73. data/lib/opal/version.rb +1 -1
  74. data/opal/corelib/basic_object.rb +1 -1
  75. data/opal/corelib/boolean.rb +2 -2
  76. data/opal/corelib/class.rb +11 -0
  77. data/opal/corelib/constants.rb +3 -3
  78. data/opal/corelib/enumerable.rb +4 -0
  79. data/opal/corelib/enumerator.rb +1 -1
  80. data/opal/corelib/hash.rb +2 -2
  81. data/opal/corelib/helpers.rb +1 -1
  82. data/opal/corelib/kernel.rb +3 -3
  83. data/opal/corelib/method.rb +1 -1
  84. data/opal/corelib/module.rb +29 -8
  85. data/opal/corelib/proc.rb +7 -5
  86. data/opal/corelib/runtime.js +141 -78
  87. data/opal/corelib/set.rb +252 -0
  88. data/opal/corelib/string.rb +2 -1
  89. data/opal/corelib/time.rb +2 -2
  90. data/opal/opal.rb +1 -0
  91. data/opal.gemspec +1 -0
  92. data/spec/filters/bugs/array.rb +22 -13
  93. data/spec/filters/bugs/base64.rb +5 -5
  94. data/spec/filters/bugs/basicobject.rb +16 -8
  95. data/spec/filters/bugs/bigdecimal.rb +161 -160
  96. data/spec/filters/bugs/binding.rb +10 -10
  97. data/spec/filters/bugs/class.rb +8 -8
  98. data/spec/filters/bugs/complex.rb +2 -1
  99. data/spec/filters/bugs/date.rb +79 -81
  100. data/spec/filters/bugs/datetime.rb +29 -29
  101. data/spec/filters/bugs/delegate.rb +1 -3
  102. data/spec/filters/bugs/encoding.rb +69 -69
  103. data/spec/filters/bugs/enumerable.rb +22 -20
  104. data/spec/filters/bugs/enumerator.rb +88 -85
  105. data/spec/filters/bugs/exception.rb +46 -40
  106. data/spec/filters/bugs/file.rb +32 -32
  107. data/spec/filters/bugs/float.rb +26 -21
  108. data/spec/filters/bugs/freeze.rb +88 -0
  109. data/spec/filters/bugs/hash.rb +39 -38
  110. data/spec/filters/bugs/integer.rb +57 -44
  111. data/spec/filters/bugs/io.rb +1 -1
  112. data/spec/filters/bugs/kernel.rb +349 -269
  113. data/spec/filters/bugs/language.rb +220 -188
  114. data/spec/filters/bugs/main.rb +5 -3
  115. data/spec/filters/bugs/marshal.rb +38 -38
  116. data/spec/filters/bugs/math.rb +2 -1
  117. data/spec/filters/bugs/method.rb +73 -62
  118. data/spec/filters/bugs/module.rb +163 -143
  119. data/spec/filters/bugs/numeric.rb +6 -6
  120. data/spec/filters/bugs/objectspace.rb +16 -16
  121. data/spec/filters/bugs/openstruct.rb +1 -1
  122. data/spec/filters/bugs/pack_unpack.rb +51 -51
  123. data/spec/filters/bugs/pathname.rb +7 -7
  124. data/spec/filters/bugs/proc.rb +63 -63
  125. data/spec/filters/bugs/random.rb +7 -6
  126. data/spec/filters/bugs/range.rb +12 -9
  127. data/spec/filters/bugs/rational.rb +8 -7
  128. data/spec/filters/bugs/regexp.rb +49 -48
  129. data/spec/filters/bugs/ruby-32.rb +56 -0
  130. data/spec/filters/bugs/set.rb +30 -30
  131. data/spec/filters/bugs/singleton.rb +4 -4
  132. data/spec/filters/bugs/string.rb +187 -99
  133. data/spec/filters/bugs/stringio.rb +7 -0
  134. data/spec/filters/bugs/stringscanner.rb +68 -68
  135. data/spec/filters/bugs/struct.rb +11 -9
  136. data/spec/filters/bugs/symbol.rb +1 -1
  137. data/spec/filters/bugs/time.rb +78 -63
  138. data/spec/filters/bugs/trace_point.rb +4 -4
  139. data/spec/filters/bugs/unboundmethod.rb +32 -17
  140. data/spec/filters/bugs/warnings.rb +8 -12
  141. data/spec/filters/unsupported/array.rb +24 -107
  142. data/spec/filters/unsupported/basicobject.rb +12 -12
  143. data/spec/filters/unsupported/bignum.rb +27 -52
  144. data/spec/filters/unsupported/class.rb +1 -2
  145. data/spec/filters/unsupported/delegator.rb +3 -3
  146. data/spec/filters/unsupported/enumerable.rb +2 -9
  147. data/spec/filters/unsupported/enumerator.rb +2 -11
  148. data/spec/filters/unsupported/file.rb +1 -1
  149. data/spec/filters/unsupported/float.rb +28 -47
  150. data/spec/filters/unsupported/hash.rb +8 -14
  151. data/spec/filters/unsupported/integer.rb +75 -91
  152. data/spec/filters/unsupported/kernel.rb +17 -35
  153. data/spec/filters/unsupported/language.rb +11 -19
  154. data/spec/filters/unsupported/marshal.rb +22 -41
  155. data/spec/filters/unsupported/matchdata.rb +28 -52
  156. data/spec/filters/unsupported/math.rb +1 -1
  157. data/spec/filters/unsupported/privacy.rb +229 -285
  158. data/spec/filters/unsupported/range.rb +1 -5
  159. data/spec/filters/unsupported/regexp.rb +40 -66
  160. data/spec/filters/unsupported/set.rb +2 -2
  161. data/spec/filters/unsupported/singleton.rb +4 -4
  162. data/spec/filters/unsupported/string.rb +305 -508
  163. data/spec/filters/unsupported/struct.rb +3 -4
  164. data/spec/filters/unsupported/symbol.rb +15 -18
  165. data/spec/filters/unsupported/thread.rb +1 -7
  166. data/spec/filters/unsupported/time.rb +159 -202
  167. data/spec/filters/unsupported/usage_of_files.rb +170 -259
  168. data/spec/lib/builder_spec.rb +4 -4
  169. data/spec/lib/rewriters/forward_args_spec.rb +32 -12
  170. data/spec/mspec-opal/runner.rb +2 -0
  171. data/spec/ruby_specs +4 -0
  172. data/stdlib/deno/base.rb +28 -0
  173. data/stdlib/deno/file.rb +340 -0
  174. data/stdlib/{headless_chrome.rb → headless_browser/base.rb} +1 -1
  175. data/stdlib/headless_browser/file.rb +15 -0
  176. data/stdlib/headless_browser.rb +4 -0
  177. data/stdlib/native.rb +1 -1
  178. data/stdlib/nodejs/file.rb +5 -0
  179. data/stdlib/opal/platform.rb +8 -6
  180. data/stdlib/opal-platform.rb +14 -8
  181. data/stdlib/set.rb +1 -258
  182. data/tasks/benchmarking.rake +62 -19
  183. data/tasks/performance.rake +1 -1
  184. data/tasks/testing.rake +5 -3
  185. data/test/nodejs/test_file.rb +29 -10
  186. data/test/opal/http_server.rb +28 -11
  187. data/test/opal/unsupported_and_bugs.rb +2 -1
  188. metadata +89 -50
  189. data/lib/opal/cli_runners/node_modules/ultron/LICENSE +0 -22
  190. data/lib/opal/cli_runners/node_modules/ultron/index.js +0 -138
  191. data/lib/opal/cli_runners/node_modules/ultron/package.json +0 -112
  192. data/lib/opal/cli_runners/node_modules/ws/SECURITY.md +0 -33
  193. data/lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.fallback.js +0 -56
  194. data/lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.js +0 -15
  195. data/lib/opal/cli_runners/node_modules/ws/lib/ErrorCodes.js +0 -28
  196. data/lib/opal/cli_runners/node_modules/ws/lib/EventTarget.js +0 -158
  197. data/lib/opal/cli_runners/node_modules/ws/lib/Extensions.js +0 -69
  198. data/lib/opal/cli_runners/node_modules/ws/lib/PerMessageDeflate.js +0 -339
  199. data/lib/opal/cli_runners/node_modules/ws/lib/Receiver.js +0 -520
  200. data/lib/opal/cli_runners/node_modules/ws/lib/Sender.js +0 -438
  201. data/lib/opal/cli_runners/node_modules/ws/lib/Validation.fallback.js +0 -9
  202. data/lib/opal/cli_runners/node_modules/ws/lib/Validation.js +0 -17
  203. data/lib/opal/cli_runners/node_modules/ws/lib/WebSocket.js +0 -705
  204. data/lib/opal/cli_runners/node_modules/ws/lib/WebSocketServer.js +0 -336
  205. data/spec/filters/bugs/boolean.rb +0 -3
  206. data/spec/filters/bugs/matrix.rb +0 -3
  207. data/spec/filters/unsupported/fixnum.rb +0 -15
  208. data/spec/filters/unsupported/freeze.rb +0 -102
  209. data/spec/filters/unsupported/pathname.rb +0 -4
  210. data/spec/filters/unsupported/proc.rb +0 -4
  211. data/spec/filters/unsupported/random.rb +0 -5
  212. data/spec/filters/unsupported/taint.rb +0 -162
@@ -1,311 +1,255 @@
1
1
  # NOTE: run bin/format-filters after changing this file
2
- opal_unsupported_filter "private" do
2
+ opal_unsupported_filter "privacy" do
3
3
  fails "A method definition always resets the visibility to public for nested definitions at the toplevel" # Expected NoMethodError (/private/) but no exception was raised ("nested_method_in_toplevel_method" was returned)
4
4
  fails "A method definition always resets the visibility to public for nested definitions in Class.new" # Expected NoMethodError (/private/) but no exception was raised ("new_def" was returned)
5
- fails "BasicObject#initialize is a private instance method"
6
- fails "BasicObject#method_missing for a Class raises a NoMethodError when an undefined method is called"
7
- fails "BasicObject#method_missing is a private method"
8
- fails "BasicObject#singleton_method_added is a private method"
9
- fails "BasicObject#singleton_method_removed is a private method"
10
- fails "BasicObject#singleton_method_undefined is a private method"
11
- fails "Defining a 'respond_to_missing?' method sets the method's visibility to private"
12
- fails "Defining a method at the top-level defines it on Object with private visibility by default"
13
- fails "Defining an 'initialize' method sets the method's visibility to private"
14
- fails "Defining an 'initialize_clone' method sets the method's visibility to private"
15
- fails "Defining an 'initialize_copy' method sets the method's visibility to private"
16
- fails "Defining an 'initialize_dup' method sets the method's visibility to private"
17
- fails "DelegateClass.instance_method raises a NameError for a private instance methods of the delegated class" # Expected NameError but no exception was raised (#<UnboundMethod: DelegateSpecs::DelegateClass#priv (defined in #<Class:0x1663a> in ./delegate.rb:351)> was returned)
18
- fails "DelegateClass.instance_methods does not include private methods" # Expected ["extra", "extra_private", "extra_protected", "__getobj__", "__setobj__", "pub", "priv", "prot", "to_json", "guard", "guard_not", "with_feature", "without_feature", "new_fd", "new_io", "should", "should_not", "version_is", "ruby_version_is", "suppress_warning", "suppress_keyword_warning", "should_receive", "should_not_receive", "stub!", "mock", "mock_int", "mock_numeric", "evaluate", "before", "after", "describe", "it", "it_should_behave_like", "context", "specify", "it_behaves_like", "ruby_bug", "conflicts_with", "big_endian", "little_endian", "platform_is", "platform_is_not", "quarantine!", "not_supported_on", "as_superuser", "as_user", "argf", "argv", "new_datetime", "with_timezone", "fixture", "flunk", "cp", "mkdir_p", "rm_r", "touch", "mock_to_path", "nan_value", "infinity_value", "bignum_value", "max_long", "min_long", "fixnum_max", "fixnum_min", "ruby_exe_options", "resolve_ruby_exe", "ruby_exe", "ruby_cmd", "opal_filter", "opal_unsupported_filter", "frozen_error_class", "pack_format", "DelegateClass", "expect", "eq", "pretty_print", "pretty_print_cycle", "pretty_print_instance_variables", "pretty_print_inspect", "<=>", "method", "Array", "at_exit", "caller", "caller_locations", "class", "copy_instance_variables", "copy_singleton_methods", "clone", "define_singleton_method", "dup", "enum_for", "exit", "extend", "gets", "hash", "initialize_copy", "instance_of?", "instance_variable_defined?", "instance_variable_get", "instance_variable_set", "remove_instance_variable", "instance_variables", "Integer", "Float", "Hash", "is_a?", "itself", "lambda", "load", "loop", "nil?", "printf", "proc", "puts", "p", "print", "readline", "warn", "raise", "rand", "respond_to?", "require", "require_relative", "require_tree", "singleton_class", "sleep", "srand", "String", "tap", "to_proc", "catch", "throw", "open", "yield_self", "fail", "kind_of?", "object_id", "public_send", "send", "then", "to_enum", "format", "sprintf", "Complex", "Rational", "frozen?", "taint", "untaint", "tainted?", "private_methods", "private_instance_methods", "protected_instance_methods", "eval", "binding", "Pathname", "require_remote", "pretty_inspect", "pp", "opal_parse", "eval_js", "BigDecimal", "initialize", "method_missing", "respond_to_missing?", "target_respond_to?", "methods", "public_methods", "protected_methods", "==", "!=", "eql?", "!", "marshal_dump", "marshal_load", "initialize_clone", "initialize_dup", "freeze", "__raise__", "__send__", "__id__", "equal?", "instance_eval", "instance_exec", "singleton_method_added", "singleton_method_removed", "singleton_method_undefined", "module_specs_public_method_on_object", "module_specs_private_method_on_object", "module_specs_protected_method_on_object", "module_specs_private_method_on_object_for_kernel_public", "module_specs_public_method_on_object_for_kernel_protected", "module_specs_public_method_on_object_for_kernel_private", "unpack_format", "be_close_to_matrix", "=~", "!~", "===", "inspect", "to_s", "module_specs_public_method_on_kernel", "module_specs_alias_on_kernel"] not to include "priv"
5
+ fails "BasicObject#initialize is a private instance method" # Expected BasicObject to have private instance method 'initialize' but it does not
6
+ fails "BasicObject#method_missing is a private method" # Expected BasicObject to have private instance method 'method_missing' but it does not
7
+ fails "BasicObject#singleton_method_added is a private method" # Expected BasicObject to have private instance method 'singleton_method_added' but it does not
8
+ fails "BasicObject#singleton_method_removed is a private method" # Expected BasicObject to have private instance method 'singleton_method_removed' but it does not
9
+ fails "BasicObject#singleton_method_undefined is a private method" # Expected BasicObject to have private instance method 'singleton_method_undefined' but it does not
10
+ fails "Defining a 'respond_to_missing?' method sets the method's visibility to private" # Expected DefRespondToMissingPSpec to have private instance method 'respond_to_missing?' but it does not
11
+ fails "Defining a method at the top-level defines it on Object with private visibility by default" # Expected Object to have private instance method 'some_toplevel_method' but it does not
12
+ fails "Defining an 'initialize' method sets the method's visibility to private" # Expected DefInitializeSpec to have private instance method 'initialize' but it does not
13
+ fails "Defining an 'initialize_clone' method sets the method's visibility to private" # Expected DefInitializeCloneSpec to have private instance method 'initialize_clone' but it does not
14
+ fails "Defining an 'initialize_copy' method sets the method's visibility to private" # Expected DefInitializeCopySpec to have private instance method 'initialize_copy' but it does not
15
+ fails "Defining an 'initialize_dup' method sets the method's visibility to private" # Expected DefInitializeDupSpec to have private instance method 'initialize_dup' but it does not
16
+ fails "DelegateClass.instance_method raises a NameError for a private instance methods of the delegated class" # Expected NameError but no exception was raised (#<UnboundMethod: DelegateSpecs::DelegateClass#priv (defined in #<Class:0x6cf4> in ./delegate.rb:360)> was returned)
17
+ fails "DelegateClass.instance_methods does not include private methods" # Expected ["extra", "extra_private", "extra_protected", "__getobj__", "__setobj__", "pub", "priv", "prot", "to_json", "guard", "guard_not", "with_feature", "without_feature", "new_fd", "new_io", "should", "should_not", "version_is", "ruby_version_is", "kernel_version_is", "suppress_warning", "suppress_keyword_warning", "should_receive", "should_not_receive", "stub!", "mock", "mock_int", "mock_numeric", "evaluate", "before", "after", "describe", "it", "it_should_behave_like", "context", "specify", "it_behaves_like", "ruby_bug", "conflicts_with", "big_endian", "little_endian", "platform_is", "platform_is_not", "quarantine!", "not_supported_on", "as_superuser", "as_real_superuser", "as_user", "argf", "argv", "new_datetime", "with_timezone", "fixture", "flunk", "cp", "mkdir_p", "rm_r", "touch", "mock_to_path", "nan_value", "infinity_value", "bignum_value", "max_long", "min_long", "fixnum_max", "fixnum_min", "ruby_exe_options", "resolve_ruby_exe", "ruby_exe", "ruby_cmd", "opal_filter", "opal_unsupported_filter", "frozen_error_class", "pack_format", "unpack_format", "DelegateClass", "expect", "eq", "pretty_print", "pretty_print_cycle", "pretty_print_instance_variables", "pretty_print_inspect", "<=>", "method", "Array", "at_exit", "caller", "caller_locations", "class", "copy_instance_variables", "copy_singleton_methods", "clone", "define_singleton_method", "dup", "enum_for", "exit", "extend", "gets", "hash", "initialize_copy", "instance_of?", "instance_variable_defined?", "instance_variable_get", "instance_variable_set", "remove_instance_variable", "instance_variables", "Integer", "Float", "Hash", "is_a?", "itself", "lambda", "load", "loop", "nil?", "printf", "proc", "puts", "p", "print", "readline", "warn", "raise", "rand", "respond_to?", "require", "require_relative", "require_tree", "singleton_class", "sleep", "srand", "String", "tap", "to_proc", "catch", "throw", "open", "yield_self", "fail", "kind_of?", "object_id", "public_send", "send", "then", "to_enum", "format", "sprintf", "Complex", "Rational", "taint", "untaint", "tainted?", "private_methods", "private_instance_methods", "protected_instance_methods", "eval", "binding", "Pathname", "require_remote", "pretty_inspect", "pp", "opal_parse", "eval_js", "BigDecimal", "initialize", "method_missing", "respond_to_missing?", "target_respond_to?", "methods", "public_methods", "protected_methods", "==", "!=", "eql?", "!", "marshal_dump", "marshal_load", "initialize_clone", "initialize_dup", "freeze", "frozen?", "__raise__", "__send__", "__id__", "equal?", "instance_eval", "instance_exec", "singleton_method_added", "singleton_method_removed", "singleton_method_undefined", "__marshal__", "module_specs_public_method_on_object", "module_specs_private_method_on_object", "module_specs_protected_method_on_object", "module_specs_private_method_on_object_for_kernel_public", "module_specs_public_method_on_object_for_kernel_protected", "module_specs_public_method_on_object_for_kernel_private", "lang_send_rest_len", "example_instance_method_of_object", "defined_specs_method", "defined_specs_receiver", "main_public_method", "main_public_method2", "main_private_method", "main_private_method2", "toplevel_define_other_method", "some_toplevel_method", "public_toplevel_method", "be_close_to_matrix", "check_autoload", "shellsplit", "shellwords", "shellescape", "shelljoin", "=~", "!~", "===", "inspect", "to_s", "module_specs_public_method_on_kernel", "module_specs_alias_on_kernel"] not to include "priv"
19
18
  fails "DelegateClass.private_instance_methods includes private instance methods of the DelegateClass class" # Expected [] to include "extra_private"
20
19
  fails "DelegateClass.protected_instance_methods includes protected instance methods of the DelegateClass class" # Expected [] to include "extra_protected"
21
20
  fails "DelegateClass.protected_instance_methods includes the protected methods of the delegated class" # Expected [] to include "prot"
22
- fails "DelegateClass.public_instance_methods does not include private methods" # Expected ["extra", "extra_private", "extra_protected", "__getobj__", "__setobj__", "pub", "priv", "prot", "to_json", "guard", "guard_not", "with_feature", "without_feature", "new_fd", "new_io", "should", "should_not", "version_is", "ruby_version_is", "suppress_warning", "suppress_keyword_warning", "should_receive", "should_not_receive", "stub!", "mock", "mock_int", "mock_numeric", "evaluate", "before", "after", "describe", "it", "it_should_behave_like", "context", "specify", "it_behaves_like", "ruby_bug", "conflicts_with", "big_endian", "little_endian", "platform_is", "platform_is_not", "quarantine!", "not_supported_on", "as_superuser", "as_user", "argf", "argv", "new_datetime", "with_timezone", "fixture", "flunk", "cp", "mkdir_p", "rm_r", "touch", "mock_to_path", "nan_value", "infinity_value", "bignum_value", "max_long", "min_long", "fixnum_max", "fixnum_min", "ruby_exe_options", "resolve_ruby_exe", "ruby_exe", "ruby_cmd", "opal_filter", "opal_unsupported_filter", "frozen_error_class", "pack_format", "DelegateClass", "expect", "eq", "pretty_print", "pretty_print_cycle", "pretty_print_instance_variables", "pretty_print_inspect", "<=>", "method", "Array", "at_exit", "caller", "caller_locations", "class", "copy_instance_variables", "copy_singleton_methods", "clone", "define_singleton_method", "dup", "enum_for", "exit", "extend", "gets", "hash", "initialize_copy", "instance_of?", "instance_variable_defined?", "instance_variable_get", "instance_variable_set", "remove_instance_variable", "instance_variables", "Integer", "Float", "Hash", "is_a?", "itself", "lambda", "load", "loop", "nil?", "printf", "proc", "puts", "p", "print", "readline", "warn", "raise", "rand", "respond_to?", "require", "require_relative", "require_tree", "singleton_class", "sleep", "srand", "String", "tap", "to_proc", "catch", "throw", "open", "yield_self", "fail", "kind_of?", "object_id", "public_send", "send", "then", "to_enum", "format", "sprintf", "Complex", "Rational", "frozen?", "taint", "untaint", "tainted?", "private_methods", "private_instance_methods", "protected_instance_methods", "eval", "binding", "Pathname", "require_remote", "pretty_inspect", "pp", "opal_parse", "eval_js", "BigDecimal", "initialize", "method_missing", "respond_to_missing?", "target_respond_to?", "methods", "public_methods", "protected_methods", "==", "!=", "eql?", "!", "marshal_dump", "marshal_load", "initialize_clone", "initialize_dup", "freeze", "__raise__", "__send__", "__id__", "equal?", "instance_eval", "instance_exec", "singleton_method_added", "singleton_method_removed", "singleton_method_undefined", "module_specs_public_method_on_object", "module_specs_private_method_on_object", "module_specs_protected_method_on_object", "module_specs_private_method_on_object_for_kernel_public", "module_specs_public_method_on_object_for_kernel_protected", "module_specs_public_method_on_object_for_kernel_private", "unpack_format", "be_close_to_matrix", "=~", "!~", "===", "inspect", "to_s", "module_specs_public_method_on_kernel", "module_specs_alias_on_kernel"] not to include "priv"
23
- fails "DelegateClass.public_instance_methods does not include the protected methods of the delegated class" # Expected ["extra", "extra_private", "extra_protected", "__getobj__", "__setobj__", "pub", "priv", "prot", "to_json", "guard", "guard_not", "with_feature", "without_feature", "new_fd", "new_io", "should", "should_not", "version_is", "ruby_version_is", "suppress_warning", "suppress_keyword_warning", "should_receive", "should_not_receive", "stub!", "mock", "mock_int", "mock_numeric", "evaluate", "before", "after", "describe", "it", "it_should_behave_like", "context", "specify", "it_behaves_like", "ruby_bug", "conflicts_with", "big_endian", "little_endian", "platform_is", "platform_is_not", "quarantine!", "not_supported_on", "as_superuser", "as_user", "argf", "argv", "new_datetime", "with_timezone", "fixture", "flunk", "cp", "mkdir_p", "rm_r", "touch", "mock_to_path", "nan_value", "infinity_value", "bignum_value", "max_long", "min_long", "fixnum_max", "fixnum_min", "ruby_exe_options", "resolve_ruby_exe", "ruby_exe", "ruby_cmd", "opal_filter", "opal_unsupported_filter", "frozen_error_class", "pack_format", "DelegateClass", "expect", "eq", "pretty_print", "pretty_print_cycle", "pretty_print_instance_variables", "pretty_print_inspect", "<=>", "method", "Array", "at_exit", "caller", "caller_locations", "class", "copy_instance_variables", "copy_singleton_methods", "clone", "define_singleton_method", "dup", "enum_for", "exit", "extend", "gets", "hash", "initialize_copy", "instance_of?", "instance_variable_defined?", "instance_variable_get", "instance_variable_set", "remove_instance_variable", "instance_variables", "Integer", "Float", "Hash", "is_a?", "itself", "lambda", "load", "loop", "nil?", "printf", "proc", "puts", "p", "print", "readline", "warn", "raise", "rand", "respond_to?", "require", "require_relative", "require_tree", "singleton_class", "sleep", "srand", "String", "tap", "to_proc", "catch", "throw", "open", "yield_self", "fail", "kind_of?", "object_id", "public_send", "send", "then", "to_enum", "format", "sprintf", "Complex", "Rational", "frozen?", "taint", "untaint", "tainted?", "private_methods", "private_instance_methods", "protected_instance_methods", "eval", "binding", "Pathname", "require_remote", "pretty_inspect", "pp", "opal_parse", "eval_js", "BigDecimal", "initialize", "method_missing", "respond_to_missing?", "target_respond_to?", "methods", "public_methods", "protected_methods", "==", "!=", "eql?", "!", "marshal_dump", "marshal_load", "initialize_clone", "initialize_dup", "freeze", "__raise__", "__send__", "__id__", "equal?", "instance_eval", "instance_exec", "singleton_method_added", "singleton_method_removed", "singleton_method_undefined", "module_specs_public_method_on_object", "module_specs_private_method_on_object", "module_specs_protected_method_on_object", "module_specs_private_method_on_object_for_kernel_public", "module_specs_public_method_on_object_for_kernel_protected", "module_specs_public_method_on_object_for_kernel_private", "unpack_format", "be_close_to_matrix", "=~", "!~", "===", "inspect", "to_s", "module_specs_public_method_on_kernel", "module_specs_alias_on_kernel"] not to include "prot"
21
+ fails "DelegateClass.public_instance_methods does not include private methods" # Expected ["extra", "extra_private", "extra_protected", "__getobj__", "__setobj__", "pub", "priv", "prot", "to_json", "guard", "guard_not", "with_feature", "without_feature", "new_fd", "new_io", "should", "should_not", "version_is", "ruby_version_is", "kernel_version_is", "suppress_warning", "suppress_keyword_warning", "should_receive", "should_not_receive", "stub!", "mock", "mock_int", "mock_numeric", "evaluate", "before", "after", "describe", "it", "it_should_behave_like", "context", "specify", "it_behaves_like", "ruby_bug", "conflicts_with", "big_endian", "little_endian", "platform_is", "platform_is_not", "quarantine!", "not_supported_on", "as_superuser", "as_real_superuser", "as_user", "argf", "argv", "new_datetime", "with_timezone", "fixture", "flunk", "cp", "mkdir_p", "rm_r", "touch", "mock_to_path", "nan_value", "infinity_value", "bignum_value", "max_long", "min_long", "fixnum_max", "fixnum_min", "ruby_exe_options", "resolve_ruby_exe", "ruby_exe", "ruby_cmd", "opal_filter", "opal_unsupported_filter", "frozen_error_class", "pack_format", "unpack_format", "DelegateClass", "expect", "eq", "pretty_print", "pretty_print_cycle", "pretty_print_instance_variables", "pretty_print_inspect", "<=>", "method", "Array", "at_exit", "caller", "caller_locations", "class", "copy_instance_variables", "copy_singleton_methods", "clone", "define_singleton_method", "dup", "enum_for", "exit", "extend", "gets", "hash", "initialize_copy", "instance_of?", "instance_variable_defined?", "instance_variable_get", "instance_variable_set", "remove_instance_variable", "instance_variables", "Integer", "Float", "Hash", "is_a?", "itself", "lambda", "load", "loop", "nil?", "printf", "proc", "puts", "p", "print", "readline", "warn", "raise", "rand", "respond_to?", "require", "require_relative", "require_tree", "singleton_class", "sleep", "srand", "String", "tap", "to_proc", "catch", "throw", "open", "yield_self", "fail", "kind_of?", "object_id", "public_send", "send", "then", "to_enum", "format", "sprintf", "Complex", "Rational", "taint", "untaint", "tainted?", "private_methods", "private_instance_methods", "protected_instance_methods", "eval", "binding", "Pathname", "require_remote", "pretty_inspect", "pp", "opal_parse", "eval_js", "BigDecimal", "initialize", "method_missing", "respond_to_missing?", "target_respond_to?", "methods", "public_methods", "protected_methods", "==", "!=", "eql?", "!", "marshal_dump", "marshal_load", "initialize_clone", "initialize_dup", "freeze", "frozen?", "__raise__", "__send__", "__id__", "equal?", "instance_eval", "instance_exec", "singleton_method_added", "singleton_method_removed", "singleton_method_undefined", "__marshal__", "module_specs_public_method_on_object", "module_specs_private_method_on_object", "module_specs_protected_method_on_object", "module_specs_private_method_on_object_for_kernel_public", "module_specs_public_method_on_object_for_kernel_protected", "module_specs_public_method_on_object_for_kernel_private", "lang_send_rest_len", "example_instance_method_of_object", "defined_specs_method", "defined_specs_receiver", "main_public_method", "main_public_method2", "main_private_method", "main_private_method2", "toplevel_define_other_method", "some_toplevel_method", "public_toplevel_method", "be_close_to_matrix", "check_autoload", "shellsplit", "shellwords", "shellescape", "shelljoin", "=~", "!~", "===", "inspect", "to_s", "module_specs_public_method_on_kernel", "module_specs_alias_on_kernel"] not to include "priv"
22
+ fails "DelegateClass.public_instance_methods does not include the protected methods of the delegated class" # Expected ["extra", "extra_private", "extra_protected", "__getobj__", "__setobj__", "pub", "priv", "prot", "to_json", "guard", "guard_not", "with_feature", "without_feature", "new_fd", "new_io", "should", "should_not", "version_is", "ruby_version_is", "kernel_version_is", "suppress_warning", "suppress_keyword_warning", "should_receive", "should_not_receive", "stub!", "mock", "mock_int", "mock_numeric", "evaluate", "before", "after", "describe", "it", "it_should_behave_like", "context", "specify", "it_behaves_like", "ruby_bug", "conflicts_with", "big_endian", "little_endian", "platform_is", "platform_is_not", "quarantine!", "not_supported_on", "as_superuser", "as_real_superuser", "as_user", "argf", "argv", "new_datetime", "with_timezone", "fixture", "flunk", "cp", "mkdir_p", "rm_r", "touch", "mock_to_path", "nan_value", "infinity_value", "bignum_value", "max_long", "min_long", "fixnum_max", "fixnum_min", "ruby_exe_options", "resolve_ruby_exe", "ruby_exe", "ruby_cmd", "opal_filter", "opal_unsupported_filter", "frozen_error_class", "pack_format", "unpack_format", "DelegateClass", "expect", "eq", "pretty_print", "pretty_print_cycle", "pretty_print_instance_variables", "pretty_print_inspect", "<=>", "method", "Array", "at_exit", "caller", "caller_locations", "class", "copy_instance_variables", "copy_singleton_methods", "clone", "define_singleton_method", "dup", "enum_for", "exit", "extend", "gets", "hash", "initialize_copy", "instance_of?", "instance_variable_defined?", "instance_variable_get", "instance_variable_set", "remove_instance_variable", "instance_variables", "Integer", "Float", "Hash", "is_a?", "itself", "lambda", "load", "loop", "nil?", "printf", "proc", "puts", "p", "print", "readline", "warn", "raise", "rand", "respond_to?", "require", "require_relative", "require_tree", "singleton_class", "sleep", "srand", "String", "tap", "to_proc", "catch", "throw", "open", "yield_self", "fail", "kind_of?", "object_id", "public_send", "send", "then", "to_enum", "format", "sprintf", "Complex", "Rational", "taint", "untaint", "tainted?", "private_methods", "private_instance_methods", "protected_instance_methods", "eval", "binding", "Pathname", "require_remote", "pretty_inspect", "pp", "opal_parse", "eval_js", "BigDecimal", "initialize", "method_missing", "respond_to_missing?", "target_respond_to?", "methods", "public_methods", "protected_methods", "==", "!=", "eql?", "!", "marshal_dump", "marshal_load", "initialize_clone", "initialize_dup", "freeze", "frozen?", "__raise__", "__send__", "__id__", "equal?", "instance_eval", "instance_exec", "singleton_method_added", "singleton_method_removed", "singleton_method_undefined", "__marshal__", "module_specs_public_method_on_object", "module_specs_private_method_on_object", "module_specs_protected_method_on_object", "module_specs_private_method_on_object_for_kernel_public", "module_specs_public_method_on_object_for_kernel_protected", "module_specs_public_method_on_object_for_kernel_private", "lang_send_rest_len", "example_instance_method_of_object", "defined_specs_method", "defined_specs_receiver", "main_public_method", "main_public_method2", "main_private_method", "main_private_method2", "toplevel_define_other_method", "some_toplevel_method", "public_toplevel_method", "be_close_to_matrix", "check_autoload", "shellsplit", "shellwords", "shellescape", "shelljoin", "=~", "!~", "===", "inspect", "to_s", "module_specs_public_method_on_kernel", "module_specs_alias_on_kernel"] not to include "prot"
24
23
  fails "Delegator#method raises a NameError for a private methods of the delegate object" # Expected warning to match: /delegator does not forward private method #priv/ but got: ""
25
24
  fails "Delegator#method raises a NameError for protected methods of the delegate object" # Expected warning to match: /delegator does not forward private method #prot/ but got: ""
26
25
  fails "Delegator#method returns a method object for private methods of the Delegator class" # NameError: undefined method `extra_private' for class `DelegateSpecs::Simple'
27
26
  fails "Delegator#method returns a method object for protected methods of the Delegator class" # NameError: undefined method `extra_protected' for class `DelegateSpecs::Simple'
28
27
  fails "Delegator#method returns a method object for public methods of the Delegator class" # NameError: undefined method `extra' for class `DelegateSpecs::Simple'
29
- fails "Delegator#methods does not include private methods" # Expected ["singleton_method", "pub", "respond_to_missing?", "method_missing", "priv", "prot", "to_json", "guard", "guard_not", "with_feature", "without_feature", "new_fd", "new_io", "should", "should_not", "version_is", "ruby_version_is", "suppress_warning", "suppress_keyword_warning", "should_receive", "should_not_receive", "stub!", "mock", "mock_int", "mock_numeric", "evaluate", "before", "after", "describe", "it", "it_should_behave_like", "context", "specify", "it_behaves_like", "ruby_bug", "conflicts_with", "big_endian", "little_endian", "platform_is", "platform_is_not", "quarantine!", "not_supported_on", "as_superuser", "as_user", "argf", "argv", "new_datetime", "with_timezone", "fixture", "flunk", "cp", "mkdir_p", "rm_r", "touch", "mock_to_path", "nan_value", "infinity_value", "bignum_value", "max_long", "min_long", "fixnum_max", "fixnum_min", "ruby_exe_options", "resolve_ruby_exe", "ruby_exe", "ruby_cmd", "opal_filter", "opal_unsupported_filter", "frozen_error_class", "pack_format", "DelegateClass", "module_specs_public_method_on_object", "module_specs_private_method_on_object", "module_specs_protected_method_on_object", "module_specs_private_method_on_object_for_kernel_public", "module_specs_public_method_on_object_for_kernel_protected", "module_specs_public_method_on_object_for_kernel_private", "unpack_format", "be_close_to_matrix", "example_instance_method_of_object", "check_autoload", "main_public_method", "main_public_method2", "main_private_method", "main_private_method2", "lang_send_rest_len", "toplevel_define_other_method", "some_toplevel_method", "public_toplevel_method", "defined_specs_method", "defined_specs_receiver", "expect", "eq", "pretty_print", "pretty_print_cycle", "pretty_print_instance_variables", "pretty_print_inspect", "=~", "!~", "===", "<=>", "method", "methods", "public_methods", "Array", "at_exit", "caller", "caller_locations", "class", "copy_instance_variables", "copy_singleton_methods", "clone", "initialize_clone", "define_singleton_method", "dup", "initialize_dup", "enum_for", "equal?", "exit", "extend", "gets", "hash", "initialize_copy", "inspect", "instance_of?", "instance_variable_defined?", "instance_variable_get", "instance_variable_set", "remove_instance_variable", "instance_variables", "Integer", "Float", "Hash", "is_a?", "itself", "lambda", "load", "loop", "nil?", "printf", "proc", "puts", "p", "print", "readline", "warn", "raise", "rand", "respond_to?", "require", "require_relative", "require_tree", "singleton_class", "sleep", "srand", "String", "tap", "to_proc", "to_s", "catch", "throw", "open", "yield_self", "fail", "kind_of?", "object_id", "public_send", "send", "then", "to_enum", "format", "sprintf", "Complex", "Rational", "freeze", "frozen?", "taint", "untaint", "tainted?", "private_methods", "protected_methods", "private_instance_methods", "protected_instance_methods", "eval", "binding", "Pathname", "require_remote", "pretty_inspect", "pp", "opal_parse", "eval_js", "BigDecimal", "module_specs_public_method_on_kernel", "module_specs_alias_on_kernel", "__send__", "__id__", "==", "!", "initialize", "eql?", "!=", "instance_eval", "instance_exec", "singleton_method_added", "singleton_method_removed", "singleton_method_undefined", "__marshal__"] not to include "priv"
28
+ fails "Delegator#methods does not include private methods" # Expected ["singleton_method", "pub", "respond_to_missing?", "method_missing", "priv", "prot", "to_json", "guard", "guard_not", "with_feature", "without_feature", "new_fd", "new_io", "should", "should_not", "version_is", "ruby_version_is", "kernel_version_is", "suppress_warning", "suppress_keyword_warning", "should_receive", "should_not_receive", "stub!", "mock", "mock_int", "mock_numeric", "evaluate", "before", "after", "describe", "it", "it_should_behave_like", "context", "specify", "it_behaves_like", "ruby_bug", "conflicts_with", "big_endian", "little_endian", "platform_is", "platform_is_not", "quarantine!", "not_supported_on", "as_superuser", "as_real_superuser", "as_user", "argf", "argv", "new_datetime", "with_timezone", "fixture", "flunk", "cp", "mkdir_p", "rm_r", "touch", "mock_to_path", "nan_value", "infinity_value", "bignum_value", "max_long", "min_long", "fixnum_max", "fixnum_min", "ruby_exe_options", "resolve_ruby_exe", "ruby_exe", "ruby_cmd", "opal_filter", "opal_unsupported_filter", "frozen_error_class", "pack_format", "unpack_format", "DelegateClass", "module_specs_public_method_on_object", "module_specs_private_method_on_object", "module_specs_protected_method_on_object", "module_specs_private_method_on_object_for_kernel_public", "module_specs_public_method_on_object_for_kernel_protected", "module_specs_public_method_on_object_for_kernel_private", "lang_send_rest_len", "example_instance_method_of_object", "defined_specs_method", "defined_specs_receiver", "main_public_method", "main_public_method2", "main_private_method", "main_private_method2", "toplevel_define_other_method", "some_toplevel_method", "public_toplevel_method", "be_close_to_matrix", "shellsplit", "shellwords", "shellescape", "shelljoin", "expect", "eq", "pretty_print", "pretty_print_cycle", "pretty_print_instance_variables", "pretty_print_inspect", "=~", "!~", "===", "<=>", "method", "methods", "public_methods", "Array", "at_exit", "caller", "caller_locations", "class", "copy_instance_variables", "copy_singleton_methods", "clone", "initialize_clone", "define_singleton_method", "dup", "initialize_dup", "enum_for", "equal?", "exit", "extend", "freeze", "frozen?", "gets", "hash", "initialize_copy", "inspect", "instance_of?", "instance_variable_defined?", "instance_variable_get", "instance_variable_set", "remove_instance_variable", "instance_variables", "Integer", "Float", "Hash", "is_a?", "itself", "lambda", "load", "loop", "nil?", "printf", "proc", "puts", "p", "print", "readline", "warn", "raise", "rand", "respond_to?", "require", "require_relative", "require_tree", "singleton_class", "sleep", "srand", "String", "tap", "to_proc", "to_s", "catch", "throw", "open", "yield_self", "fail", "kind_of?", "object_id", "public_send", "send", "then", "to_enum", "format", "sprintf", "Complex", "Rational", "taint", "untaint", "tainted?", "private_methods", "protected_methods", "private_instance_methods", "protected_instance_methods", "eval", "binding", "Pathname", "require_remote", "pretty_inspect", "pp", "opal_parse", "eval_js", "BigDecimal", "module_specs_public_method_on_kernel", "module_specs_alias_on_kernel", "__send__", "__id__", "==", "!", "initialize", "eql?", "!=", "instance_eval", "instance_exec", "singleton_method_added", "singleton_method_removed", "singleton_method_undefined", "__marshal__"] not to include "priv"
30
29
  fails "Delegator#private_methods includes all private instance methods of the Delegate class" # Expected [] to include "extra_private"
31
30
  fails "Delegator#protected_methods includes protected instance methods of the Delegator class" # Expected [] to include "extra_protected"
32
31
  fails "Delegator#protected_methods includes protected methods of the delegate object" # Expected [] to include "prot"
33
- fails "Delegator#public_methods includes public instance methods of the Delegator class" # Expected ["pub", "respond_to_missing?", "method_missing", "priv", "prot", "to_json", "guard", "guard_not", "with_feature", "without_feature", "new_fd", "new_io", "should", "should_not", "version_is", "ruby_version_is", "suppress_warning", "suppress_keyword_warning", "should_receive", "should_not_receive", "stub!", "mock", "mock_int", "mock_numeric", "evaluate", "before", "after", "describe", "it", "it_should_behave_like", "context", "specify", "it_behaves_like", "ruby_bug", "conflicts_with", "big_endian", "little_endian", "platform_is", "platform_is_not", "quarantine!", "not_supported_on", "as_superuser", "as_user", "argf", "argv", "new_datetime", "with_timezone", "fixture", "flunk", "cp", "mkdir_p", "rm_r", "touch", "mock_to_path", "nan_value", "infinity_value", "bignum_value", "max_long", "min_long", "fixnum_max", "fixnum_min", "ruby_exe_options", "resolve_ruby_exe", "ruby_exe", "ruby_cmd", "opal_filter", "opal_unsupported_filter", "frozen_error_class", "pack_format", "DelegateClass", "module_specs_public_method_on_object", "module_specs_private_method_on_object", "module_specs_protected_method_on_object", "module_specs_private_method_on_object_for_kernel_public", "module_specs_public_method_on_object_for_kernel_protected", "module_specs_public_method_on_object_for_kernel_private", "unpack_format", "be_close_to_matrix", "example_instance_method_of_object", "check_autoload", "main_public_method", "main_public_method2", "main_private_method", "main_private_method2", "lang_send_rest_len", "toplevel_define_other_method", "some_toplevel_method", "public_toplevel_method", "defined_specs_method", "defined_specs_receiver", "expect", "eq", "pretty_print", "pretty_print_cycle", "pretty_print_instance_variables", "pretty_print_inspect", "=~", "!~", "===", "<=>", "method", "methods", "public_methods", "Array", "at_exit", "caller", "caller_locations", "class", "copy_instance_variables", "copy_singleton_methods", "clone", "initialize_clone", "define_singleton_method", "dup", "initialize_dup", "enum_for", "equal?", "exit", "extend", "gets", "hash", "initialize_copy", "inspect", "instance_of?", "instance_variable_defined?", "instance_variable_get", "instance_variable_set", "remove_instance_variable", "instance_variables", "Integer", "Float", "Hash", "is_a?", "itself", "lambda", "load", "loop", "nil?", "printf", "proc", "puts", "p", "print", "readline", "warn", "raise", "rand", "respond_to?", "require", "require_relative", "require_tree", "singleton_class", "sleep", "srand", "String", "tap", "to_proc", "to_s", "catch", "throw", "open", "yield_self", "fail", "kind_of?", "object_id", "public_send", "send", "then", "to_enum", "format", "sprintf", "Complex", "Rational", "freeze", "frozen?", "taint", "untaint", "tainted?", "private_methods", "protected_methods", "private_instance_methods", "protected_instance_methods", "eval", "binding", "Pathname", "require_remote", "pretty_inspect", "pp", "opal_parse", "eval_js", "BigDecimal", "module_specs_public_method_on_kernel", "module_specs_alias_on_kernel", "__send__", "__id__", "==", "!", "initialize", "eql?", "!=", "instance_eval", "instance_exec", "singleton_method_added", "singleton_method_removed", "singleton_method_undefined", "__marshal__"] to include "extra"
34
- fails "Enumerator#initialize is a private method"
32
+ fails "Delegator#public_methods includes public instance methods of the Delegator class" # Expected ["pub", "respond_to_missing?", "method_missing", "priv", "prot", "to_json", "guard", "guard_not", "with_feature", "without_feature", "new_fd", "new_io", "should", "should_not", "version_is", "ruby_version_is", "kernel_version_is", "suppress_warning", "suppress_keyword_warning", "should_receive", "should_not_receive", "stub!", "mock", "mock_int", "mock_numeric", "evaluate", "before", "after", "describe", "it", "it_should_behave_like", "context", "specify", "it_behaves_like", "ruby_bug", "conflicts_with", "big_endian", "little_endian", "platform_is", "platform_is_not", "quarantine!", "not_supported_on", "as_superuser", "as_real_superuser", "as_user", "argf", "argv", "new_datetime", "with_timezone", "fixture", "flunk", "cp", "mkdir_p", "rm_r", "touch", "mock_to_path", "nan_value", "infinity_value", "bignum_value", "max_long", "min_long", "fixnum_max", "fixnum_min", "ruby_exe_options", "resolve_ruby_exe", "ruby_exe", "ruby_cmd", "opal_filter", "opal_unsupported_filter", "frozen_error_class", "pack_format", "unpack_format", "DelegateClass", "module_specs_public_method_on_object", "module_specs_private_method_on_object", "module_specs_protected_method_on_object", "module_specs_private_method_on_object_for_kernel_public", "module_specs_public_method_on_object_for_kernel_protected", "module_specs_public_method_on_object_for_kernel_private", "lang_send_rest_len", "expect", "eq", "pretty_print", "pretty_print_cycle", "pretty_print_instance_variables", "pretty_print_inspect", "=~", "!~", "===", "<=>", "method", "methods", "public_methods", "Array", "at_exit", "caller", "caller_locations", "class", "copy_instance_variables", "copy_singleton_methods", "clone", "initialize_clone", "define_singleton_method", "dup", "initialize_dup", "enum_for", "equal?", "exit", "extend", "freeze", "frozen?", "gets", "hash", "initialize_copy", "inspect", "instance_of?", "instance_variable_defined?", "instance_variable_get", "instance_variable_set", "remove_instance_variable", "instance_variables", "Integer", "Float", "Hash", "is_a?", "itself", "lambda", "load", "loop", "nil?", "printf", "proc", "puts", "p", "print", "readline", "warn", "raise", "rand", "respond_to?", "require", "require_relative", "require_tree", "singleton_class", "sleep", "srand", "String", "tap", "to_proc", "to_s", "catch", "throw", "open", "yield_self", "fail", "kind_of?", "object_id", "public_send", "send", "then", "to_enum", "format", "sprintf", "Complex", "Rational", "taint", "untaint", "tainted?", "private_methods", "protected_methods", "private_instance_methods", "protected_instance_methods", "eval", "binding", "Pathname", "require_remote", "pretty_inspect", "pp", "opal_parse", "eval_js", "BigDecimal", "module_specs_public_method_on_kernel", "module_specs_alias_on_kernel", "__send__", "__id__", "==", "!", "initialize", "eql?", "!=", "instance_eval", "instance_exec", "singleton_method_added", "singleton_method_removed", "singleton_method_undefined"] to include "extra"
33
+ fails "Enumerator#initialize is a private method" # Expected Enumerator to have private instance method 'initialize' but it does not
35
34
  fails "Enumerator::Chain#initialize is a private method" # Expected Enumerator::Chain to have private instance method 'initialize' but it does not
36
35
  fails "Enumerator::Generator#initialize is a private method" # Expected Enumerator::Generator to have private instance method 'initialize' but it does not
37
36
  fails "Enumerator::Lazy#initialize is a private method" # Expected Enumerator::Lazy to have private instance method 'initialize' but it does not
38
37
  fails "Enumerator::Yielder#initialize is a private method" # Expected Enumerator::Yielder to have private instance method 'initialize' but it does not
39
- fails "Invoking a private getter method does not permit self as a receiver"
40
- fails "Kernel#block_given? is a private method"
41
- fails "Kernel#eval is a private method"
38
+ fails "Kernel#Pathname is a private instance method" # Expected Kernel to have private instance method 'Pathname' but it does not
39
+ fails "Kernel#block_given? is a private method" # Expected Kernel to have private instance method 'block_given?' but it does not
40
+ fails "Kernel#eval is a private method" # Expected Kernel to have private instance method 'eval' but it does not
42
41
  fails "Kernel#initialize_clone is a private instance method" # Expected Kernel to have private instance method 'initialize_clone' but it does not
43
42
  fails "Kernel#initialize_dup is a private instance method" # Expected Kernel to have private instance method 'initialize_dup' but it does not
44
- fails "Kernel#iterator? is a private method"
45
- fails "Kernel#local_variables is a private method"
46
- fails "Kernel#methods returns private singleton methods defined by obj.meth"
47
- fails "Kernel#methods returns singleton methods defined in 'class << self' when it follows 'private'"
48
- fails "Kernel#p is a private method"
49
- fails "Kernel#print is a private method"
50
- fails "Kernel#printf is a private method"
51
- fails "Kernel#private_methods returns a list of the names of privately accessible methods in the object and its ancestors and mixed-in modules"
52
- fails "Kernel#private_methods returns a list of the names of privately accessible methods in the object"
53
- fails "Kernel#private_methods returns private methods mixed in to the metaclass"
54
- fails "Kernel#private_methods when not passed an argument returns a unique list for a class including a module"
55
- fails "Kernel#private_methods when not passed an argument returns a unique list for a subclass of a class that includes a module"
56
- fails "Kernel#private_methods when not passed an argument returns a unique list for an object extended by a module"
57
- fails "Kernel#private_methods when passed false returns a list of private methods in without its ancestors"
58
- fails "Kernel#private_methods when passed nil returns a list of private methods in without its ancestors"
59
- fails "Kernel#private_methods when passed true returns a unique list for a class including a module"
60
- fails "Kernel#private_methods when passed true returns a unique list for a subclass of a class that includes a module"
61
- fails "Kernel#private_methods when passed true returns a unique list for an object extended by a module"
62
- fails "Kernel#protected_methods returns a list of the names of protected methods accessible in the object and from its ancestors and mixed-in modules"
63
- fails "Kernel#protected_methods returns a list of the names of protected methods accessible in the object"
64
- fails "Kernel#protected_methods returns methods mixed in to the metaclass"
65
- fails "Kernel#protected_methods when not passed an argument returns a unique list for a class including a module"
66
- fails "Kernel#protected_methods when not passed an argument returns a unique list for a subclass of a class that includes a module"
67
- fails "Kernel#protected_methods when not passed an argument returns a unique list for an object extended by a module"
68
- fails "Kernel#protected_methods when passed false returns a list of protected methods in without its ancestors"
69
- fails "Kernel#protected_methods when passed nil returns a list of protected methods in without its ancestors"
70
- fails "Kernel#protected_methods when passed true returns a unique list for a class including a module"
71
- fails "Kernel#protected_methods when passed true returns a unique list for a subclass of a class that includes a module"
72
- fails "Kernel#protected_methods when passed true returns a unique list for an object extended by a module"
73
- fails "Kernel#public_send called from own public method raises a NoMethodError if the method is private"
74
- fails "Kernel#public_send called from own public method raises a NoMethodError if the method is protected"
75
- fails "Kernel#public_send raises a NoMethodError if the method is protected"
76
- fails "Kernel#public_send raises a NoMethodError if the named method is an alias of a private method"
77
- fails "Kernel#public_send raises a NoMethodError if the named method is an alias of a protected method"
78
- fails "Kernel#public_send raises a NoMethodError if the named method is private"
79
- fails "Kernel#puts is a private method"
80
- fails "Kernel#respond_to? does not change method visibility when finding private method"
81
- fails "Kernel#respond_to? returns false even if obj responds to the given private method (include_private = false)"
82
- fails "Kernel#respond_to? returns false if obj responds to the given private method"
83
- fails "Kernel#respond_to? returns false if obj responds to the given protected method (include_private = false)"
84
- fails "Kernel#respond_to? returns false if obj responds to the given protected method"
85
- fails "Kernel#respond_to_missing? is a private method"
86
- fails "Kernel#respond_to_missing? is called when obj responds to the given private method, include_private = false"
87
- fails "Kernel#respond_to_missing? is called when obj responds to the given protected method, include_private = false"
88
- fails "Kernel#respond_to_missing? isn't called when obj responds to the given private method, include_private = true"
89
- fails "Kernel#respond_to_missing? isn't called when obj responds to the given protected method, include_private = true"
90
- fails "Kernel#respond_to_missing? isn't called when obj responds to the given public method, include_private = true"
91
- fails "Kernel#singleton_methods when not passed an argument does not return private class methods for a class"
92
- fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a class including a module"
93
- fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a module including a module"
94
- fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a subclass including a module"
95
- fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a subclass of a class including a module"
96
- fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a subclass of a class that includes a module, where the subclass also includes a module"
97
- fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a subclass"
98
- fails "Kernel#singleton_methods when not passed an argument does not return private module methods for a module"
99
- fails "Kernel#singleton_methods when not passed an argument does not return private singleton methods for a class extended with a module"
100
- fails "Kernel#singleton_methods when not passed an argument does not return private singleton methods for an object extended with a module"
101
- fails "Kernel#singleton_methods when not passed an argument does not return private singleton methods for an object extended with two modules"
102
- fails "Kernel#singleton_methods when not passed an argument does not return private singleton methods for an object extented with a module including a module"
103
- fails "Kernel#singleton_methods when passed false does not return private class methods for a class"
104
- fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a class including a module"
105
- fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a module including a module"
106
- fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a subclass including a module"
107
- fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a subclass of a class including a module"
108
- fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a subclass of a class that includes a module, where the subclass also includes a module"
109
- fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a subclass"
110
- fails "Kernel#singleton_methods when passed false does not return private module methods for a module"
111
- fails "Kernel#singleton_methods when passed false does not return private singleton methods for a class extended with a module"
112
- fails "Kernel#singleton_methods when passed false does not return private singleton methods for an object extended with a module"
113
- fails "Kernel#singleton_methods when passed false does not return private singleton methods for an object extended with two modules"
114
- fails "Kernel#singleton_methods when passed false does not return private singleton methods for an object extented with a module including a module"
115
- fails "Kernel#singleton_methods when passed true does not return private class methods for a class"
116
- fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a class including a module"
117
- fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a module including a module"
118
- fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a subclass including a module"
119
- fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a subclass of a class including a module"
120
- fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a subclass of a class that includes a module, where the subclass also includes a module"
121
- fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a subclass"
122
- fails "Kernel#singleton_methods when passed true does not return private module methods for a module"
123
- fails "Kernel#singleton_methods when passed true does not return private singleton methods for a class extended with a module"
124
- fails "Kernel#singleton_methods when passed true does not return private singleton methods for an object extended with a module"
125
- fails "Kernel#singleton_methods when passed true does not return private singleton methods for an object extended with two modules"
126
- fails "Kernel#singleton_methods when passed true does not return private singleton methods for an object extented with a module including a module"
127
- fails "Kernel.global_variables is a private method"
128
- fails "Kernel.lambda is a private method"
129
- fails "Kernel.loop is a private method"
130
- fails "Kernel.proc is a private method"
131
- fails "Kernel.rand is a private method"
132
- fails "Kernel.srand is a private method"
133
- fails "Matrix.new is private" # Expected Matrix to have private method 'new' but it does not
134
- fails "Method#== missing methods calls respond_to_missing? with true to include private methods"
135
- fails "Method#eql? missing methods calls respond_to_missing? with true to include private methods"
136
- fails "Module#alias_method aliasing special methods keeps initialize private when aliasing"
137
- fails "Module#alias_method aliasing special methods keeps initialize_clone private when aliasing"
138
- fails "Module#alias_method aliasing special methods keeps initialize_copy private when aliasing"
139
- fails "Module#alias_method aliasing special methods keeps initialize_dup private when aliasing"
140
- fails "Module#alias_method aliasing special methods keeps respond_to_missing? private when aliasing"
141
- fails "Module#alias_method is a private method"
142
- fails "Module#append_features is a private method"
143
- fails "Module#attr is a private method"
144
- fails "Module#attr_accessor is a private method"
145
- fails "Module#attr_reader is a private method"
146
- fails "Module#attr_writer is a private method"
147
- fails "Module#define_method is private"
43
+ fails "Kernel#local_variables is a private method" # Expected Kernel to have private instance method 'local_variables' but it does not
44
+ fails "Kernel#p is a private method" # Expected Kernel to have private instance method 'p' but it does not
45
+ fails "Kernel#print is a private method" # Expected Kernel to have private instance method 'print' but it does not
46
+ fails "Kernel#printf is a private method" # Expected Kernel to have private instance method 'printf' but it does not
47
+ fails "Kernel#private_methods returns a list of the names of privately accessible methods in the object and its ancestors and mixed-in modules" # Expected [] to include "shichi"
48
+ fails "Kernel#private_methods returns a list of the names of privately accessible methods in the object" # Expected [] to include "shichi"
49
+ fails "Kernel#private_methods returns private methods mixed in to the metaclass" # Expected [] to include "shoo"
50
+ fails "Kernel#private_methods when not passed an argument returns a unique list for a class including a module" # Expected [] == ["pri"] to be truthy but was false
51
+ fails "Kernel#private_methods when not passed an argument returns a unique list for a subclass of a class that includes a module" # Expected [] == ["pri"] to be truthy but was false
52
+ fails "Kernel#private_methods when not passed an argument returns a unique list for an object extended by a module" # Expected [] == ["pri"] to be truthy but was false
53
+ fails "Kernel#private_methods when passed false returns a list of private methods in without its ancestors" # Expected [] == ["ds_pri", "fs_pri"] to be truthy but was false
54
+ fails "Kernel#private_methods when passed nil returns a list of private methods in without its ancestors" # Expected [] == ["ds_pri", "fs_pri"] to be truthy but was false
55
+ fails "Kernel#private_methods when passed true returns a unique list for a class including a module" # Expected [] == ["pri"] to be truthy but was false
56
+ fails "Kernel#private_methods when passed true returns a unique list for a subclass of a class that includes a module" # Expected [] == ["pri"] to be truthy but was false
57
+ fails "Kernel#private_methods when passed true returns a unique list for an object extended by a module" # Expected [] == ["pri"] to be truthy but was false
58
+ fails "Kernel#protected_methods returns a list of the names of protected methods accessible in the object and from its ancestors and mixed-in modules" # Expected [] to include "juu_ichi"
59
+ fails "Kernel#protected_methods returns a list of the names of protected methods accessible in the object" # Expected [] to include "juu_ichi"
60
+ fails "Kernel#protected_methods returns methods mixed in to the metaclass" # Expected [] to include "nopeeking"
61
+ fails "Kernel#protected_methods when not passed an argument returns a unique list for a class including a module" # Expected [] == ["pro"] to be truthy but was false
62
+ fails "Kernel#protected_methods when not passed an argument returns a unique list for a subclass of a class that includes a module" # Expected [] == ["pro"] to be truthy but was false
63
+ fails "Kernel#protected_methods when not passed an argument returns a unique list for an object extended by a module" # Expected [] == ["pro"] to be truthy but was false
64
+ fails "Kernel#protected_methods when passed false returns a list of protected methods in without its ancestors" # Expected [] == ["ds_pro", "fs_pro"] to be truthy but was false
65
+ fails "Kernel#protected_methods when passed nil returns a list of protected methods in without its ancestors" # Expected [] == ["ds_pro", "fs_pro"] to be truthy but was false
66
+ fails "Kernel#protected_methods when passed true returns a unique list for a class including a module" # Expected [] == ["pro"] to be truthy but was false
67
+ fails "Kernel#protected_methods when passed true returns a unique list for a subclass of a class that includes a module" # Expected [] == ["pro"] to be truthy but was false
68
+ fails "Kernel#protected_methods when passed true returns a unique list for an object extended by a module" # Expected [] == ["pro"] to be truthy but was false
69
+ fails "Kernel#public_send called from own public method raises a NoMethodError if the method is private" # Expected NoMethodError but got: RuntimeError (Should not called)
70
+ fails "Kernel#public_send called from own public method raises a NoMethodError if the method is protected" # Expected NoMethodError but got: RuntimeError (Should not called)
71
+ fails "Kernel#public_send raises a NoMethodError if the method is protected" # Expected NoMethodError but no exception was raised ("done" was returned)
72
+ fails "Kernel#public_send raises a NoMethodError if the named method is an alias of a private method" # Expected NoMethodError but no exception was raised ("done2" was returned)
73
+ fails "Kernel#public_send raises a NoMethodError if the named method is an alias of a protected method" # Expected NoMethodError but no exception was raised ("done2" was returned)
74
+ fails "Kernel#public_send raises a NoMethodError if the named method is private" # Expected NoMethodError but no exception was raised ("done2" was returned)
75
+ fails "Kernel#puts is a private method" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x2d0e6 @name=nil @stdout=#<IO:0xa @fd=1 @flags="w" @eof=false @closed="read" @write_proc=#<Proc:0x2d0ec> @tty=true>>
76
+ fails "Kernel#respond_to? does not change method visibility when finding private method" # Expected true == false to be truthy but was false
77
+ fails "Kernel#respond_to? returns false even if obj responds to the given private method (include_private = false)" # Expected true == false to be truthy but was false
78
+ fails "Kernel#respond_to? returns false if obj responds to the given private method" # Expected true == false to be truthy but was false
79
+ fails "Kernel#respond_to? returns false if obj responds to the given protected method (include_private = false)" # Expected true == false to be truthy but was false
80
+ fails "Kernel#respond_to? returns false if obj responds to the given protected method" # Expected true == false to be truthy but was false
81
+ fails "Kernel#respond_to_missing? is a private method" # Expected Kernel to have private instance method 'respond_to_missing?' but it does not
82
+ fails "Kernel#respond_to_missing? is called when obj responds to the given private method, include_private = false" # Mock '#<KernelSpecs::A:0x37840>' expected to receive respond_to_missing?("private_method", false) exactly 1 times but received it 0 times
83
+ fails "Kernel#respond_to_missing? is called when obj responds to the given protected method, include_private = false" # Expected true to be false
84
+ fails "Kernel#singleton_methods when not passed an argument does not return private class methods for a class" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::A
85
+ fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a class including a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::D
86
+ fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a module including a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::N
87
+ fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a subclass including a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::C
88
+ fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a subclass of a class including a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::E
89
+ fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a subclass of a class that includes a module, where the subclass also includes a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::F
90
+ fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a subclass" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::B
91
+ fails "Kernel#singleton_methods when not passed an argument does not return private module methods for a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::M
92
+ fails "Kernel#singleton_methods when not passed an argument does not return private singleton methods for a class extended with a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::P
93
+ fails "Kernel#singleton_methods when not passed an argument does not return private singleton methods for an object extended with a module" # NoMethodError: undefined method `singleton_methods' for #<MockObject:0x446a @name="Object extended" @null=nil>
94
+ fails "Kernel#singleton_methods when not passed an argument does not return private singleton methods for an object extended with two modules" # NoMethodError: undefined method `singleton_methods' for #<MockObject:0x447a @name="Object extended twice" @null=nil>
95
+ fails "Kernel#singleton_methods when passed false does not return private class methods for a class" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::A
96
+ fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a class including a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::D
97
+ fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a module including a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::N
98
+ fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a subclass including a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::C
99
+ fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a subclass of a class including a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::E
100
+ fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a subclass of a class that includes a module, where the subclass also includes a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::F
101
+ fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a subclass" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::B
102
+ fails "Kernel#singleton_methods when passed false does not return private module methods for a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::M
103
+ fails "Kernel#singleton_methods when passed false does not return private singleton methods for a class extended with a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::P
104
+ fails "Kernel#singleton_methods when passed false does not return private singleton methods for an object extended with a module" # NoMethodError: undefined method `singleton_methods' for #<MockObject:0x44bc @name="Object extended" @null=nil>
105
+ fails "Kernel#singleton_methods when passed false does not return private singleton methods for an object extended with two modules" # NoMethodError: undefined method `singleton_methods' for #<MockObject:0x44b8 @name="Object extended twice" @null=nil>
106
+ fails "Kernel#singleton_methods when passed true does not return private class methods for a class" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::A
107
+ fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a class including a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::D
108
+ fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a module including a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::N
109
+ fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a subclass including a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::C
110
+ fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a subclass of a class including a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::E
111
+ fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a subclass of a class that includes a module, where the subclass also includes a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::F
112
+ fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a subclass" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::B
113
+ fails "Kernel#singleton_methods when passed true does not return private module methods for a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::M
114
+ fails "Kernel#singleton_methods when passed true does not return private singleton methods for a class extended with a module" # NoMethodError: undefined method `singleton_methods' for ReflectSpecs::P
115
+ fails "Kernel#singleton_methods when passed true does not return private singleton methods for an object extended with a module" # NoMethodError: undefined method `singleton_methods' for #<MockObject:0x4496 @name="Object extended" @null=nil>
116
+ fails "Kernel#singleton_methods when passed true does not return private singleton methods for an object extended with two modules" # NoMethodError: undefined method `singleton_methods' for #<MockObject:0x44a2 @name="Object extended twice" @null=nil>
117
+ fails "Kernel.global_variables is a private method" # Expected Kernel to have private instance method 'global_variables' but it does not
118
+ fails "Kernel.lambda is a private method" # Expected Kernel to have private instance method 'lambda' but it does not
119
+ fails "Kernel.loop is a private method" # Expected Kernel to have private instance method 'loop' but it does not
120
+ fails "Kernel.proc is a private method" # Expected Kernel to have private instance method 'proc' but it does not
121
+ fails "Method#== missing methods calls respond_to_missing? with true to include private methods" # Mock '#<MethodSpecs::Methods:0x49b7c>' expected to receive respond_to_missing?("some_missing_method", true) exactly 1 times but received it 0 times
122
+ fails "Method#eql? missing methods calls respond_to_missing? with true to include private methods" # Mock '#<MethodSpecs::Methods:0x36ba8>' expected to receive respond_to_missing?("some_missing_method", true) exactly 1 times but received it 0 times
123
+ fails "Module#alias_method aliasing special methods keeps initialize private when aliasing" # Expected false to be true
124
+ fails "Module#alias_method aliasing special methods keeps initialize_clone private when aliasing" # Expected false to be true
125
+ fails "Module#alias_method aliasing special methods keeps initialize_copy private when aliasing" # Expected false to be true
126
+ fails "Module#alias_method aliasing special methods keeps initialize_dup private when aliasing" # Expected false to be true
127
+ fails "Module#alias_method aliasing special methods keeps respond_to_missing? private when aliasing" # Expected false to be true
128
+ fails "Module#append_features is a private method" # Expected Module to have private instance method 'append_features' but it does not
148
129
  fails "Module#define_method when given an UnboundMethod sets the new method's visibility to the current frame's visibility" # Expected NoMethodError but no exception was raised ("piggy" was returned)
149
- fails "Module#define_method when name is :initialize given an UnboundMethod sets the visibility to private when method is named :initialize"
150
- fails "Module#define_method when name is :initialize passed a block sets visibility to private when method name is :initialize"
151
- fails "Module#define_method when name is not a special private name given an UnboundMethod and called from the target module sets the visibility of the method to the current visibility"
152
- fails "Module#define_method when name is not a special private name given an UnboundMethod sets the visibility of the method to the current visibility"
153
- fails "Module#define_method when name is not a special private name passed a block and called from the target module sets the visibility of the method to the current visibility"
154
- fails "Module#extend_object is a private method"
155
- fails "Module#extend_object is called even when private"
156
- fails "Module#extended is private in its default implementation"
157
- fails "Module#included is private in its default implementation"
158
- fails "Module#instance_methods makes a private Object instance method public in Kernel"
159
- fails "Module#method_added is a private instance method"
160
- fails "Module#method_removed is a private instance method"
161
- fails "Module#method_undefined is a private instance method"
162
- fails "Module#module_function is a private method"
163
- fails "Module#module_function with specific method names can make accessible private methods"
164
- fails "Module#module_function with specific method names makes the instance methods private"
165
- fails "Module#prepend_features is a private method"
166
- fails "Module#prepended is a private method"
167
- fails "Module#private is a private method"
168
- fails "Module#private makes a public Object instance method private in Kernel"
169
- fails "Module#private makes a public Object instance method private in a new module"
170
- fails "Module#private makes the target method uncallable from other types"
130
+ fails "Module#define_method when name is :initialize given an UnboundMethod sets the visibility to private when method is named :initialize" # Expected #<Class:0x50d92> to have private instance method 'initialize' but it does not
131
+ fails "Module#define_method when name is :initialize passed a block sets visibility to private when method name is :initialize" # Expected #<Class:0x50d8a> to have private instance method 'initialize' but it does not
132
+ fails "Module#define_method when name is not a special private name given an UnboundMethod and called from the target module sets the visibility of the method to the current visibility" # Expected #<Class:0x50d6a> to have private instance method 'baz' but it does not
133
+ fails "Module#define_method when name is not a special private name passed a block and called from the target module sets the visibility of the method to the current visibility" # Expected #<Class:0x50d76> to have private instance method 'baz' but it does not
134
+ fails "Module#extend_object is a private method" # Expected Module to have private instance method 'extend_object' but it does not
135
+ fails "Module#extended is private in its default implementation" # Expected [] to include "extended"
136
+ fails "Module#included is private in its default implementation" # Expected Module to have private instance method 'included' but it does not
137
+ fails "Module#instance_methods makes a private Object instance method public in Kernel" # Expected ["=~", "!~", "===", "<=>", "method", "methods", "public_methods", "Array", "at_exit", "caller", "caller_locations", "class", "copy_instance_variables", "copy_singleton_methods", "clone", "initialize_clone", "define_singleton_method", "dup", "initialize_dup", "enum_for", "equal?", "exit", "extend", "freeze", "frozen?", "gets", "hash", "initialize_copy", "inspect", "instance_of?", "instance_variable_defined?", "instance_variable_get", "instance_variable_set", "remove_instance_variable", "instance_variables", "Integer", "Float", "Hash", "is_a?", "itself", "lambda", "load", "loop", "nil?", "printf", "proc", "puts", "p", "print", "readline", "warn", "raise", "rand", "respond_to?", "respond_to_missing?", "require", "require_relative", "require_tree", "singleton_class", "sleep", "srand", "String", "tap", "to_proc", "to_s", "catch", "throw", "open", "yield_self", "fail", "kind_of?", "object_id", "public_send", "send", "then", "to_enum", "format", "sprintf", "Complex", "Rational", "taint", "untaint", "tainted?", "private_methods", "protected_methods", "private_instance_methods", "protected_instance_methods", "eval", "binding", "Pathname", "require_remote", "pretty_inspect", "pp", "opal_parse", "eval_js", "BigDecimal", "module_specs_public_method_on_kernel", "module_specs_alias_on_kernel"] to include "module_specs_private_method_on_object_for_kernel_public"
138
+ fails "Module#method_added is a private instance method" # Expected Module to have private instance method 'method_added' but it does not
139
+ fails "Module#method_removed is a private instance method" # Expected Module to have private instance method 'method_removed' but it does not
140
+ fails "Module#method_undefined is a private instance method" # Expected Module to have private instance method 'method_undefined' but it does not
141
+ fails "Module#module_function is a private method" # Expected Module to have private instance method 'module_function' but it does not
142
+ fails "Module#module_function with specific method names can make accessible private methods" # Exception: Cannot set properties of undefined (setting 'displayName')
143
+ fails "Module#module_function with specific method names makes the instance methods private" # Expected true == false to be truthy but was false
144
+ fails "Module#prepend_features is a private method" # Expected Module to have private instance method 'prepend_features' but it does not
145
+ fails "Module#prepended is a private method" # Expected Module to have private instance method 'prepended' but it does not
146
+ fails "Module#private is a private method" # Expected Module to have private instance method 'private' but it does not
147
+ fails "Module#private makes a public Object instance method private in Kernel" # Expected Kernel to have private instance method 'module_specs_public_method_on_object_for_kernel_private' but it does not
148
+ fails "Module#private makes a public Object instance method private in a new module" # Expected #<Module:0x2baf0> to have private instance method 'module_specs_public_method_on_object' but it does not
149
+ fails "Module#private makes the target method uncallable from other types" # Expected NoMethodError but no exception was raised (true was returned)
171
150
  fails "Module#private only makes the method private in the class it is called on" # Expected NameError but no exception was raised (2 was returned)
172
- fails "Module#private raises a NameError when given an undefined name"
173
- fails "Module#private returns self"
174
- fails "Module#private without arguments affects evaled method definitions when itself is outside the eval"
175
- fails "Module#private without arguments affects normally if itself and following method definitions are inside a eval"
176
- fails "Module#private without arguments affects normally if itself and method definitions are inside a module_eval"
177
- fails "Module#private without arguments continues setting visibility if the body encounters other visibility setters with arguments"
178
- fails "Module#private without arguments does not affect method definitions when itself is inside an eval and method definitions are outside"
179
- fails "Module#private without arguments does not affect module_evaled method definitions when itself is outside the eval"
180
- fails "Module#private without arguments sets visibility to following method definitions"
181
- fails "Module#private without arguments stops setting visibility if the body encounters other visibility setters without arguments"
182
- fails "Module#private without arguments within a closure sets the visibility outside the closure"
183
- fails "Module#private_class_method accepts more than one method at a time"
184
- fails "Module#private_class_method makes a class method private"
185
- fails "Module#private_class_method makes an existing class method private up the inheritance tree"
186
- fails "Module#private_class_method makes an existing class method private"
187
- fails "Module#private_class_method raises a NameError if class method doesn't exist"
188
- fails "Module#private_class_method raises a NameError when the given name is an instance method"
189
- fails "Module#private_class_method raises a NameError when the given name is not a method"
190
- fails "Module#private_constant accepts multiple names"
191
- fails "Module#private_constant accepts strings as constant names"
192
- fails "Module#private_constant can only be passed constant names defined in the target (self) module"
151
+ fails "Module#private raises a NameError when given an undefined name" # Expected NameError but no exception was raised ("undefined" was returned)
152
+ fails "Module#private without arguments affects evaled method definitions when itself is outside the eval" # Expected #<Module:0x2bfce> to have private instance method 'test1' but it does not
153
+ fails "Module#private without arguments affects normally if itself and following method definitions are inside a eval" # Expected #<Module:0x2bc96> to have private instance method 'test1' but it does not
154
+ fails "Module#private without arguments affects normally if itself and method definitions are inside a module_eval" # Expected #<Module:0x2bd64> to have private instance method 'test1' but it does not
155
+ fails "Module#private without arguments continues setting visibility if the body encounters other visibility setters with arguments" # Expected #<Module:0x2bd70> to have private instance method 'test2' but it does not
156
+ fails "Module#private without arguments sets visibility to following method definitions" # Expected #<Module:0x2bd6a> to have private instance method 'test1' but it does not
157
+ fails "Module#private without arguments stops setting visibility if the body encounters other visibility setters without arguments" # Expected #<Module:0x2bea2> to have protected instance method 'test1' but it does not
158
+ fails "Module#private without arguments within a closure sets the visibility outside the closure" # Expected #<Module:0x2bfd4> to have private instance method 'test1' but it does not
159
+ fails "Module#private_class_method accepts more than one method at a time" # Expected NoMethodError but no exception was raised (nil was returned)
160
+ fails "Module#private_class_method makes a class method private" # Expected NoMethodError but no exception was raised ("foo" was returned)
161
+ fails "Module#private_class_method makes an existing class method private up the inheritance tree" # Expected NoMethodError but no exception was raised (nil was returned)
162
+ fails "Module#private_class_method makes an existing class method private" # Expected NoMethodError but no exception was raised (nil was returned)
163
+ fails "Module#private_class_method raises a NameError if class method doesn't exist" # Expected NameError but no exception was raised ("no_method_here" was returned)
164
+ fails "Module#private_class_method raises a NameError when the given name is an instance method" # Expected NameError but no exception was raised (#<Class:0x364fe> was returned)
165
+ fails "Module#private_class_method raises a NameError when the given name is not a method" # Expected NameError but no exception was raised (#<Class:0x3654c> was returned)
166
+ fails "Module#private_constant accepts multiple names" # Expected NameError but no exception was raised (true was returned)
167
+ fails "Module#private_constant accepts strings as constant names" # Expected NameError but no exception was raised (true was returned)
168
+ fails "Module#private_constant can only be passed constant names defined in the target (self) module" # Expected NameError but no exception was raised (nil was returned)
193
169
  fails "Module#private_constant marked constants NameError by #private_constant has :receiver and :name attributes" # Expected NameError but no exception was raised (true was returned)
194
170
  fails "Module#private_constant marked constants NameError by #private_constant has the defined class as the :name attribute" # Expected NameError but no exception was raised (true was returned)
195
- fails "Module#private_constant marked constants in Object cannot be accessed using ::Const form"
196
- fails "Module#private_constant marked constants in Object is not defined? using ::Const form"
197
- fails "Module#private_constant marked constants in a class can be accessed from lexical scope"
198
- fails "Module#private_constant marked constants in a class can be accessed from the class itself"
199
- fails "Module#private_constant marked constants in a class cannot be accessed from outside the class"
200
- fails "Module#private_constant marked constants in a class cannot be reopened as a class"
201
- fails "Module#private_constant marked constants in a class cannot be reopened as a module"
202
- fails "Module#private_constant marked constants in a class is defined? from lexical scope"
203
- fails "Module#private_constant marked constants in a class is not defined? with A::B form"
204
- fails "Module#private_constant marked constants in a module can be accessed from lexical scope"
205
- fails "Module#private_constant marked constants in a module can be accessed from the module itself"
206
- fails "Module#private_constant marked constants in a module cannot be accessed from outside the module"
171
+ fails "Module#private_constant marked constants in Object cannot be accessed using ::Const form" # Expected NameError but no exception was raised (true was returned)
172
+ fails "Module#private_constant marked constants in Object is not defined? using ::Const form" # Expected "constant" == nil to be truthy but was false
173
+ fails "Module#private_constant marked constants in a class cannot be accessed from outside the class" # Expected NameError but no exception was raised (true was returned)
174
+ fails "Module#private_constant marked constants in a class cannot be reopened as a class" # Expected NameError but no exception was raised (nil was returned)
175
+ fails "Module#private_constant marked constants in a class cannot be reopened as a module" # Expected NameError but no exception was raised (nil was returned)
176
+ fails "Module#private_constant marked constants in a class is not defined? with A::B form" # Expected "constant" == nil to be truthy but was false
177
+ fails "Module#private_constant marked constants in a module cannot be accessed from outside the module" # Expected NameError but no exception was raised (true was returned)
207
178
  fails "Module#private_constant marked constants in a module cannot be reopened as a class from scope where constant would be private" # Expected NameError but no exception was raised (nil was returned)
208
- fails "Module#private_constant marked constants in a module cannot be reopened as a class"
209
- fails "Module#private_constant marked constants in a module cannot be reopened as a module from scope where constant would be private" # Exception: Cannot read property '$pretty_inspect' of undefined
210
- fails "Module#private_constant marked constants in a module cannot be reopened as a module"
211
- fails "Module#private_constant marked constants in a module is defined? from lexical scope"
212
- fails "Module#private_constant marked constants in a module is not defined? with A::B form"
213
- fails "Module#private_constant marked constants remain private even when updated"
214
- fails "Module#private_instance_methods returns a list of private methods in module and its ancestors"
215
- fails "Module#private_instance_methods when not passed an argument returns a unique list for a class including a module"
216
- fails "Module#private_instance_methods when not passed an argument returns a unique list for a subclass"
217
- fails "Module#private_instance_methods when passed false as a parameter, should return only methods defined in that module"
218
- fails "Module#private_instance_methods when passed true returns a unique list for a class including a module"
219
- fails "Module#private_instance_methods when passed true returns a unique list for a subclass"
220
- fails "Module#private_method_defined? accepts symbols for the method name"
221
- fails "Module#private_method_defined? calls #to_str to convert an Object"
222
- fails "Module#private_method_defined? raises a TypeError if passed a Fixnum"
223
- fails "Module#private_method_defined? raises a TypeError if passed an object that defines #to_sym"
224
- fails "Module#private_method_defined? raises a TypeError if passed an object that does not defined #to_str"
225
- fails "Module#private_method_defined? raises a TypeError if passed false"
226
- fails "Module#private_method_defined? raises a TypeError if passed nil"
227
- fails "Module#private_method_defined? returns true if the named private method is defined by module or its ancestors"
228
- fails "Module#protected is a private method"
229
- fails "Module#protected makes a public Object instance method protected in Kernel"
230
- fails "Module#protected makes a public Object instance method protected in a new module"
231
- fails "Module#protected makes an existing class method protected"
232
- fails "Module#protected raises a NameError when given an undefined name"
233
- fails "Module#protected returns self"
234
- fails "Module#protected without arguments affects evaled method definitions when itself is outside the eval"
235
- fails "Module#protected without arguments affects normally if itself and following method definitions are inside a eval"
236
- fails "Module#protected without arguments affects normally if itself and method definitions are inside a module_eval"
237
- fails "Module#protected without arguments continues setting visibility if the body encounters other visibility setters with arguments"
238
- fails "Module#protected without arguments does not affect method definitions when itself is inside an eval and method definitions are outside"
239
- fails "Module#protected without arguments does not affect module_evaled method definitions when itself is outside the eval"
240
- fails "Module#protected without arguments sets visibility to following method definitions"
241
- fails "Module#protected without arguments stops setting visibility if the body encounters other visibility setters without arguments"
242
- fails "Module#protected without arguments within a closure sets the visibility outside the closure"
243
- fails "Module#protected_instance_methods default list should be the same as passing true as an argument"
244
- fails "Module#protected_instance_methods returns a list of protected methods in module and its ancestors"
245
- fails "Module#protected_instance_methods when not passed an argument returns a unique list for a class including a module"
246
- fails "Module#protected_instance_methods when not passed an argument returns a unique list for a subclass"
247
- fails "Module#protected_instance_methods when passed false as a parameter, should return only methods defined in that module"
248
- fails "Module#protected_instance_methods when passed true returns a unique list for a class including a module"
249
- fails "Module#protected_instance_methods when passed true returns a unique list for a subclass"
250
- fails "Module#protected_method_defined? accepts symbols for the method name"
251
- fails "Module#protected_method_defined? calls #to_str to convert an Object"
252
- fails "Module#protected_method_defined? raises a TypeError if passed a Fixnum"
253
- fails "Module#protected_method_defined? raises a TypeError if passed an object that defines #to_sym"
254
- fails "Module#protected_method_defined? raises a TypeError if passed an object that does not defined #to_str"
255
- fails "Module#protected_method_defined? raises a TypeError if passed false"
256
- fails "Module#protected_method_defined? raises a TypeError if passed nil"
257
- fails "Module#protected_method_defined? returns true if the named protected method is defined by module or its ancestors"
258
- fails "Module#public is a private method"
259
- fails "Module#public makes a private Object instance method public in Kernel"
260
- fails "Module#public makes a private Object instance method public in a new module"
261
- fails "Module#public raises a NameError when given an undefined name"
262
- fails "Module#public returns self"
263
- fails "Module#public without arguments affects evaled method definitions when itself is outside the eval"
264
- fails "Module#public without arguments affects normally if itself and following method definitions are inside a eval"
265
- fails "Module#public without arguments does not affect method definitions when itself is inside an eval and method definitions are outside"
266
- fails "Module#public without arguments does not affect module_evaled method definitions when itself is outside the eval"
267
- fails "Module#public without arguments stops setting visibility if the body encounters other visibility setters without arguments"
268
- fails "Module#public_class_method accepts more than one method at a time"
269
- fails "Module#public_class_method makes an existing class method public up the inheritance tree"
270
- fails "Module#public_class_method makes an existing class method public"
271
- fails "Module#public_class_method raises a NameError if class method doesn't exist"
272
- fails "Module#public_class_method raises a NameError when the given name is an instance method"
273
- fails "Module#public_class_method raises a NameError when the given name is not a method"
274
- fails "Module#public_constant accepts multiple names"
275
- fails "Module#public_constant accepts strings as constant names"
276
- fails "Module#public_constant can only be passed constant names defined in the target (self) module"
277
- fails "Module#public_constant marked constants in a class can be accessed from outside the class"
278
- fails "Module#public_constant marked constants in a class is defined? with A::B form" # Exception: Opal.TypeError is not a constructor
279
- fails "Module#public_constant marked constants in a module can be accessed from outside the module"
280
- fails "Module#public_constant marked constants in a module is defined? with A::B form" # Exception: Opal.TypeError is not a constructor
281
- fails "Module#public_instance_method is a public method"
282
- fails "Module#public_instance_method raises a NameError if the method is private"
283
- fails "Module#public_instance_method raises a NameError when given a protected method name"
284
- fails "Module#public_instance_method raises a TypeError when given a name is not Symbol or String"
285
- fails "Module#public_instance_method requires an argument"
286
- fails "Module#public_instance_method sets the NameError#name attribute to the name of the missing method"
287
- fails "Module#public_instance_method when given a public method name accepts if the name is a Symbol or String"
288
- fails "Module#public_instance_method when given a public method name returns an UnboundMethod corresponding to the defined Module"
289
- fails "Module#public_instance_methods when passed false as a parameter, should return only methods defined in that module"
290
- fails "Module#public_method_defined? calls #to_str to convert an Object"
291
- fails "Module#public_method_defined? raises a TypeError if passed a Fixnum"
292
- fails "Module#public_method_defined? raises a TypeError if passed an object that defines #to_sym"
293
- fails "Module#public_method_defined? raises a TypeError if passed an object that does not defined #to_str"
294
- fails "Module#public_method_defined? raises a TypeError if passed false"
295
- fails "Module#public_method_defined? raises a TypeError if passed nil"
296
- fails "Module#public_method_defined? returns false if method is not a public method"
297
- fails "Module#remove_const is a private method"
298
- fails "Module#remove_method is a private method"
299
- fails "Module#undef_method is a private method"
300
- fails "NoMethodError#message for an protected method match /protected method/"
301
- fails "NoMethodError#message for private method match /private method/"
302
- fails "OpenStruct#initialize is private"
303
- fails "OpenStruct#new_ostruct_member is protected"
304
- fails "OpenStruct#table is protected"
305
- fails "Rational#marshal_dump is a private method"
306
- fails "Redefining a singleton method does not inherit a previously set visibility"
307
- fails "Regexp#initialize is a private method"
308
- fails "Set#flatten_merge is protected"
309
- fails "String#+@ returns mutable copy despite freeze-magic-comment in file" # NoMethodError: undefined method `tmp' for #<Object:0x3bdc>
310
- fails "StringScanner#initialize is a private method"
179
+ fails "Module#private_constant marked constants in a module cannot be reopened as a module from scope where constant would be private" # Expected NameError but no exception was raised (nil was returned)
180
+ fails "Module#private_constant marked constants in a module is not defined? with A::B form" # Expected "constant" == nil to be truthy but was false
181
+ fails "Module#private_constant marked constants remain private even when updated" # Expected warning to match: /already initialized constant/ but got: ""
182
+ fails "Module#private_instance_methods returns a list of private methods in module and its ancestors" # Expected ModuleSpecs::CountsMixin to have private instance method 'private_3' but it does not
183
+ fails "Module#private_instance_methods when not passed an argument returns a unique list for a class including a module" # Expected [] == ["pri"] to be truthy but was false
184
+ fails "Module#private_instance_methods when not passed an argument returns a unique list for a subclass" # Expected [] == ["pri"] to be truthy but was false
185
+ fails "Module#private_instance_methods when passed false as a parameter, should return only methods defined in that module" # Expected ModuleSpecs::CountsMixin to have private instance method 'private_3' but it does not
186
+ fails "Module#private_instance_methods when passed true returns a unique list for a class including a module" # Expected [] == ["pri"] to be truthy but was false
187
+ fails "Module#private_instance_methods when passed true returns a unique list for a subclass" # Expected [] == ["pri"] to be truthy but was false
188
+ fails "Module#private_method_defined? accepts symbols for the method name" # Expected false == true to be truthy but was false
189
+ fails "Module#private_method_defined? calls #to_str to convert an Object" # Expected false == true to be truthy but was false
190
+ fails "Module#private_method_defined? raises a TypeError if passed an object that defines #to_sym" # Expected TypeError but no exception was raised (false was returned)
191
+ fails "Module#private_method_defined? raises a TypeError if passed an object that does not defined #to_str" # Expected TypeError but no exception was raised (false was returned)
192
+ fails "Module#private_method_defined? raises a TypeError if passed false" # Expected TypeError but no exception was raised (false was returned)
193
+ fails "Module#private_method_defined? raises a TypeError if passed nil" # Expected TypeError but no exception was raised (false was returned)
194
+ fails "Module#private_method_defined? returns true if the named private method is defined by module or its ancestors" # Expected false == true to be truthy but was false
195
+ fails "Module#protected is a private method" # Expected Module to have private instance method 'protected' but it does not
196
+ fails "Module#protected makes a public Object instance method protected in Kernel" # Expected Kernel to have protected instance method 'module_specs_public_method_on_object_for_kernel_protected' but it does not
197
+ fails "Module#protected makes a public Object instance method protected in a new module" # Expected #<Module:0x4c5f6> to have protected instance method 'module_specs_public_method_on_object' but it does not
198
+ fails "Module#protected makes an existing class method protected" # Expected NoMethodError but no exception was raised (5 was returned)
199
+ fails "Module#protected raises a NameError when given an undefined name" # Expected NameError but no exception was raised ("undefined" was returned)
200
+ fails "Module#protected without arguments affects evaled method definitions when itself is outside the eval" # Expected #<Module:0x4cace> to have protected instance method 'test1' but it does not
201
+ fails "Module#protected without arguments affects normally if itself and following method definitions are inside a eval" # Expected #<Module:0x4c796> to have protected instance method 'test1' but it does not
202
+ fails "Module#protected without arguments affects normally if itself and method definitions are inside a module_eval" # Expected #<Module:0x4c79c> to have protected instance method 'test1' but it does not
203
+ fails "Module#protected without arguments continues setting visibility if the body encounters other visibility setters with arguments" # Expected #<Module:0x4c8d4> to have protected instance method 'test2' but it does not
204
+ fails "Module#protected without arguments sets visibility to following method definitions" # Expected #<Module:0x4c8da> to have protected instance method 'test1' but it does not
205
+ fails "Module#protected without arguments stops setting visibility if the body encounters other visibility setters without arguments" # Expected #<Module:0x4c7a2> to have private instance method 'test1' but it does not
206
+ fails "Module#protected without arguments within a closure sets the visibility outside the closure" # Expected #<Module:0x4cad4> to have protected instance method 'test1' but it does not
207
+ fails "Module#protected_instance_methods returns a list of protected methods in module and its ancestors" # Expected [] to include "protected_3"
208
+ fails "Module#protected_instance_methods when not passed an argument returns a unique list for a class including a module" # Expected [] == ["pro"] to be truthy but was false
209
+ fails "Module#protected_instance_methods when not passed an argument returns a unique list for a subclass" # Expected [] == ["pro"] to be truthy but was false
210
+ fails "Module#protected_instance_methods when passed false as a parameter, should return only methods defined in that module" # Expected [] == ["protected_3"] to be truthy but was false
211
+ fails "Module#protected_instance_methods when passed true returns a unique list for a class including a module" # Expected [] == ["pro"] to be truthy but was false
212
+ fails "Module#protected_instance_methods when passed true returns a unique list for a subclass" # Expected [] == ["pro"] to be truthy but was false
213
+ fails "Module#protected_method_defined? accepts symbols for the method name" # Expected false == true to be truthy but was false
214
+ fails "Module#protected_method_defined? calls #to_str to convert an Object" # Expected false == true to be truthy but was false
215
+ fails "Module#protected_method_defined? raises a TypeError if passed an object that defines #to_sym" # Expected TypeError but no exception was raised (false was returned)
216
+ fails "Module#protected_method_defined? raises a TypeError if passed an object that does not defined #to_str" # Expected TypeError but no exception was raised (false was returned)
217
+ fails "Module#protected_method_defined? raises a TypeError if passed false" # Expected TypeError but no exception was raised (false was returned)
218
+ fails "Module#protected_method_defined? raises a TypeError if passed nil" # Expected TypeError but no exception was raised (false was returned)
219
+ fails "Module#protected_method_defined? returns true if the named protected method is defined by module or its ancestors" # Expected false == true to be truthy but was false
220
+ fails "Module#public is a private method" # Expected Module to have private instance method 'public' but it does not
221
+ fails "Module#public makes a private Object instance method public in Kernel" # Expected Kernel to have public instance method 'module_specs_private_method_on_object_for_kernel_public' but it does not
222
+ fails "Module#public makes a private Object instance method public in a new module" # Expected #<Module:0x1b994> to have public instance method 'module_specs_private_method_on_object' but it does not
223
+ fails "Module#public raises a NameError when given an undefined name" # Expected NameError but no exception was raised ("undefined" was returned)
224
+ fails "Module#public without arguments does not affect method definitions when itself is inside an eval and method definitions are outside" # Expected #<Module:0x1bd3c> to have protected instance method 'test1' but it does not
225
+ fails "Module#public without arguments stops setting visibility if the body encounters other visibility setters without arguments" # Expected #<Module:0x1bd46> to have protected instance method 'test1' but it does not
226
+ fails "Module#public_class_method accepts more than one method at a time" # Expected NameError but no exception was raised (nil was returned)
227
+ fails "Module#public_class_method makes an existing class method public up the inheritance tree" # Expected NoMethodError but no exception was raised (nil was returned)
228
+ fails "Module#public_class_method makes an existing class method public" # Expected NoMethodError but no exception was raised (nil was returned)
229
+ fails "Module#public_class_method raises a NameError if class method doesn't exist" # Expected NameError but no exception was raised ("no_method_here" was returned)
230
+ fails "Module#public_class_method raises a NameError when the given name is an instance method" # Expected NameError but no exception was raised (#<Class:0x37d02> was returned)
231
+ fails "Module#public_class_method raises a NameError when the given name is not a method" # Expected NameError but no exception was raised (#<Class:0x37d60> was returned)
232
+ fails "Module#public_constant accepts multiple names" # ArgumentError: [.public_constant] wrong number of arguments (given 2, expected 1)
233
+ fails "Module#public_constant can only be passed constant names defined in the target (self) module" # Expected NameError but no exception was raised (nil was returned)
234
+ fails "Module#public_instance_method raises a NameError if the method is private" # Expected NameError but no exception was raised (#<UnboundMethod: ModuleSpecs::Basic#private_module (defined in ModuleSpecs::Basic in ruby/core/module/fixtures/classes.rb:86)> was returned)
235
+ fails "Module#public_instance_method raises a NameError when given a protected method name" # Expected NameError but no exception was raised (#<UnboundMethod: ModuleSpecs::Basic#protected_module (defined in ModuleSpecs::Basic in ruby/core/module/fixtures/classes.rb:83)> was returned)
236
+ fails "Module#public_instance_method raises a TypeError when given a name is not Symbol or String" # Expected TypeError but got: NameError (undefined method `' for class `')
237
+ fails "Module#public_instance_method when given a public method name accepts if the name is a Symbol or String" # Expected #<UnboundMethod: ModuleSpecs::Basic#public_module (defined in ModuleSpecs::Basic in ruby/core/module/fixtures/classes.rb:80)> == #<UnboundMethod: ModuleSpecs::Basic#public_module (defined in ModuleSpecs::Basic in ruby/core/module/fixtures/classes.rb:80)> to be truthy but was false
238
+ fails "Module#public_instance_methods when passed false as a parameter, should return only methods defined in that module" # Expected ["public_3", "private_3", "protected_3"] == ["public_3"] to be truthy but was false
239
+ fails "Module#public_method_defined? calls #to_str to convert an Object" # Expected false == true to be truthy but was false
240
+ fails "Module#public_method_defined? raises a TypeError if passed an object that defines #to_sym" # Expected TypeError but no exception was raised (false was returned)
241
+ fails "Module#public_method_defined? raises a TypeError if passed an object that does not defined #to_str" # Expected TypeError but no exception was raised (false was returned)
242
+ fails "Module#public_method_defined? raises a TypeError if passed false" # Expected TypeError but no exception was raised (false was returned)
243
+ fails "Module#public_method_defined? raises a TypeError if passed nil" # Expected TypeError but no exception was raised (false was returned)
244
+ fails "Module#public_method_defined? returns false if method is not a public method" # Expected true == false to be truthy but was false
245
+ fails "Module#remove_const is a private method" # Expected [] to include "remove_const"
246
+ fails "NoMethodError#message for an protected method match /protected method/" # No behavior expectation was found in the example
247
+ fails "NoMethodError#message for private method match /private method/" # No behavior expectation was found in the example
248
+ fails "OpenStruct#initialize is private" # Expected OpenStruct to have private instance method 'initialize' but it does not
249
+ fails "Rational#marshal_dump is a private method" # Expected Rational to have private instance method 'marshal_dump' but it does not
250
+ fails "Redefining a singleton method does not inherit a previously set visibility" # Expected #<Class:#<Object:0x4deb2>> to have private instance method 'foo' but it does not
251
+ fails "Regexp#initialize is a private method" # Expected Regexp to have private method 'initialize' but it does not
252
+ fails "Set#flatten_merge is protected" # Expected Set to have protected instance method 'flatten_merge' but it does not
253
+ fails "String#+@ returns mutable copy despite freeze-magic-comment in file" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x2022e>
254
+ fails "StringScanner#initialize is a private method" # Expected StringScanner to have private instance method 'initialize' but it does not
311
255
  end