Class: XSpec::AssertionContext::Doubles::InstanceReference

Inherits:
Reference
  • Object
show all
Defined in:
lib/xspec/assertion_contexts.rb

Instance Method Summary collapse

Methods inherited from Reference

#initialize, #to_s

Constructor Details

This class inherits a constructor from XSpec::AssertionContext::Doubles::Reference

Instance Method Details

#validate_call!(args) ⇒ Object



264
265
266
267
268
269
270
271
# File 'lib/xspec/assertion_contexts.rb', line 264

def validate_call!(args)
  name, rest = *args

  unless @klass.public_instance_methods.include?(name)
    raise DoubleFailure,
      "#{@klass}##{name} is unimplemented or not public"
  end
end