class ErrorOnCall
Public Class Methods
new(klass)
click to toggle source
# File lib/rspec/isolate/error_on_call.rb, line 2 def initialize(klass) @klass = klass end
Public Instance Methods
method_missing(name, *args)
click to toggle source
# File lib/rspec/isolate/error_on_call.rb, line 6 def method_missing(name, *args) raise IsolationError.new("Method :#{name} called on isolated class #{@klass.name}") end