Sha256: ba9cd9c06ff7956df1fc6632214c3fb1b7677edbeb68a64bf9f511a1fd1b35d6

Contents?: true

Size: 852 Bytes

Versions: 15

Compression:

Stored size: 852 Bytes

Contents

unless Opal::RSpec::Compatibility.multiple_module_include_super_works_right?
  module Opal::RSpec::VerifyingDoubleFixes
    def method_missing(message, *args, &block)
      # Null object conditional is an optimization. If not a null object,
      # validity of method expectations will have been checked at definition
      # time.
      if null_object?
        if @__sending_message == message
          __mock_proxy.ensure_implemented(message)
        else
          __mock_proxy.ensure_publicly_implemented(message, self)
        end
      end

      call_method_missing message, *args, &block
    end
  end

  module ::RSpec::Mocks
    module VerifyingDouble
      include ::Opal::RSpec::VerifyingDoubleFixes
    end

    # In Opala 0.9, this also
    class ObjectVerifyingDouble
      include ::Opal::RSpec::VerifyingDoubleFixes
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
opal-rspec-0.8.0 lib-opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb
opal-rspec-0.8.0.alpha3 lib-opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb
opal-rspec-0.8.0.alpha2 lib-opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb
opal-rspec-0.8.0.alpha1 lib-opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb
opal-rspec-0.7.1 lib-opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb
opal-rspec-0.7.0 lib-opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb
opal-rspec-0.6.2 opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb
opal-rspec-0.7.0.rc.2 lib-opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb
opal-rspec-0.7.0.rc.1 lib-opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb
opal-rspec-0.6.1 opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb
opal-rspec-0.6.0 opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb
opal-rspec-0.6.0.beta1 opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb
opal-connect-rspec-0.5.0 opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb
opal-rspec-0.5.0 opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb
opal-rspec-0.5.0.beta3 opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb