lib/bogus/shadow.rb in bogus-0.0.3 vs lib/bogus/shadow.rb in bogus-0.0.4
- old
+ new
@@ -31,10 +31,10 @@
interaction = stubs(name, *args, &return_value)
@required.add(interaction)
end
def unsatisfied_interactions
- @required.to_a - @calls
+ @required.reject { |i| @calls.include?(i) }
end
def self.has_shadow?(object)
object.respond_to?(:__shadow__)
end