class ActiveSupport::Testing::SimpleStubs

def stubbed?

Returns true if any stubs are set, false if there are none
def stubbed?
  !@stubs.empty?
end