Sha256: 119d8e1ba45c62790b7284827ebc8d1f731ed6e64fa139d27d601bc04f12b873

Contents?: true

Size: 1.2 KB

Versions: 4

Compression:

Stored size: 1.2 KB

Contents

opal_filter "Private methods" do
  fails "Array#initialize is private"
  fails "The defined? keyword when called with a method name having a module as a receiver returns nil if the method is private"
  fails "Array#initialize_copy is private"

  fails "Hash#initialize_copy is private"
  fails "Hash#initialize is private"

  fails "Struct#initialize is private"

  fails "Defining an 'initialize' method sets the method's visibility to private"
  fails "Defining an 'initialize_copy' method sets the method's visibility to private"

  fails "Invoking a private getter method does not permit self as a receiver"
  fails "The defined? keyword when called with a method name having a module as receiver returns nil if the method is private"
  fails "The defined? keyword when called with a method name having a module as receiver returns nil if the method is protected"

  fails "SimpleDelegator.new doesn't forward private method calls"
  fails "SimpleDelegator.new doesn't forward private method calls even via send or __send__"
  fails "SimpleDelegator.new forwards protected method calls"

  fails "Set#initialize is private"

  fails "Singleton.allocate is a private method"
  fails "Singleton.new is a private method"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opal-0.5.5 spec/opal/filters/unsupported/private_methods.rb
opal-0.5.4 spec/filters/unsupported/private_methods.rb
opal-0.5.2 spec/filters/unsupported/private_methods.rb
opal-0.5.0 spec/filters/unsupported/private_methods.rb