Sha256: 473b0c9674da92b6de856d1de79773d3dedd7825bae5795cada1ebd826bae913
Contents?: true
Size: 925 Bytes
Versions: 3
Compression:
Stored size: 925 Bytes
Contents
# https://github.com/opal/opal/issues/1110, fixed in Opal 0.9 unless Opal::RSpec::Compatibility.class_within_class_new_works? class ExpiredInstanceInterface def foo; end def bar; end def bazz; end end class ExpiredClassInterface def self.foo; end def self.bar; end def self.bazz; end end class ExampleClass def hello :hello_defined_on_class end end module MethodMissing remove_method :method_missing rescue nil def method_missing(m, *a, &b) if m == :captured_by_method_missing "response generated by method missing" else super(m, *a, &b) end end end class Foo def self.foo bar rescue StandardError end end class OutOfGas < StandardError attr_reader :amount, :units def initialize(amount, units) @amount = amount @units = units end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
opal-connect-rspec-0.5.0 | spec/rspec/mocks/fixes/opal_itself.rb |
opal-rspec-0.5.0 | spec/rspec/mocks/fixes/opal_itself.rb |
opal-rspec-0.5.0.beta3 | spec/rspec/mocks/fixes/opal_itself.rb |