Class: BackgroundGuard

Inherits:
SpecGuard show all
Defined in:
lib/mspec/guards/background.rb

Overview

Some specs, notably those for Readline, will block under certain circumstances when run as background or subprocesses. Use this guard for such specs.

Instance Method Summary collapse

Methods inherited from SpecGuard

#===, #after, #before, finish, #implementation?, #initialize, #os?, #platform?, register, ruby_version, #standard?, unregister, #unregister, #windows?, windows?, #wordsize?, #yield?

Constructor Details

This class inherits a constructor from SpecGuard

Instance Method Details

#match?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/mspec/guards/background.rb', line 8

def match?
  MSpec.mode? :background
end