lib/caricature/clr/isolation.rb in caricature-0.7.1 vs lib/caricature/clr/isolation.rb in caricature-0.7.2
- old
+ new
@@ -7,10 +7,10 @@
# Creates an isolation object complete with proxy and method call recorder
# It works out which isolation it needs to create and provide and initializes the
# method call recorder
def for(subject, recorder = MethodCallRecorder.new, expectations = Expectations.new)
context = IsolatorContext.new subject, recorder, expectations
- isolation_strategy = subject.is_clr_type? ? get_clr_isolation_strategy(subject) : RubyIsolator
+ isolation_strategy = subject.clr_type? ? get_clr_isolation_strategy(subject) : RubyIsolator
isolator = isolation_strategy.for context
isolation = new(isolator, context)
isolator.isolation
end
\ No newline at end of file