|
122 | 122 | fails "A singleton method definition can be declared for a global variable"
|
123 | 123 | fails "A singleton method definition can be declared for an instance variable"
|
124 | 124 | fails "A singleton method definition can be declared for a local variable"
|
125 |
| - fails "Defining an 'initialize' method sets the method's visibility to private" |
126 |
| - fails "Defining an 'initialize_copy' method sets the method's visibility to private" |
127 | 125 |
|
128 |
| - fails "The defined? keyword when called with a method name having a module as a receiver returns nil if the method is private" |
129 | 126 | fails "The defined? keyword for a scoped constant returns nil when an undefined constant is scoped to a defined constant"
|
130 | 127 | fails "The defined? keyword for a top-level scoped constant returns nil when an undefined constant is scoped to a defined constant"
|
131 | 128 |
|
|
240 | 237 | fails "The return keyword when passed a splat returns an array when used as a splat"
|
241 | 238 | fails "The return keyword in a Thread raises a LocalJumpError if used to exit a thread"
|
242 | 239 |
|
243 |
| - fails "Invoking a private getter method does not permit self as a receiver" |
244 | 240 | fails "Invoking a method with manditory and optional arguments raises an ArgumentError if too many values are passed"
|
245 | 241 | fails "Invoking a method with optional arguments raises ArgumentError if extra arguments are passed"
|
246 |
| - # fails "Invoking a method passes a literal hash without curly braces or parens" |
247 |
| - # fails "Invoking a method passes literal hashes without curly braces as the last parameter" |
248 | 242 | fails "Invoking a method raises a SyntaxError with both a literal block and an object as block"
|
249 | 243 | fails "Invoking a method with an object as a block uses 'to_proc' for coercion"
|
250 | 244 |
|
|
338 | 332 | fails "The yield call taking multiple arguments with a splat does not pass an argument value if the splatted argument is nil"
|
339 | 333 |
|
340 | 334 | fails "The defined? keyword when called with a method name without a receiver returns nil if the method is not defined"
|
341 |
| - fails "The defined? keyword when called with a method name having a module as receiver returns nil if the method is private" |
342 |
| - fails "The defined? keyword when called with a method name having a module as receiver returns nil if the method is protected" |
343 | 335 | fails "The defined? keyword when called with a method name having a module as receiver returns nil if the method is not defined"
|
344 | 336 | fails "The defined? keyword when called with a method name having a module as receiver returns nil if the class is not defined"
|
345 | 337 | fails "The defined? keyword when called with a method name having a module as receiver returns nil if the subclass is not defined"
|
|
0 commit comments