Sha256: 455fcddaa5168b01a9f49228e14b93c803e4dd7e0e83957dd725c909ee29eae1
Contents?: true
Size: 549 Bytes
Versions: 2
Compression:
Stored size: 549 Bytes
Contents
module Spy class Error < StandardError; end class AlreadyStubbedError < Error def to_s @mesg || "Spy is already stubbed." end end class AlreadyHookedError < Error def to_s @mesg || "Spy is already hooked." end end class NotHookedError < Error def to_s @mesg || "Spy was not hooked." end end class NeverHookedError < Error def to_s @mesg || "Spy was never hooked." end end class NoSpyError < Error def to_s @mesg || "Spy could not be found" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spy-0.3.1 | lib/spy/exceptions.rb |
spy-0.3.0 | lib/spy/exceptions.rb |