Class: RunnerGuard
Instance Attribute Summary
Attributes inherited from SpecGuard
Instance Method Summary collapse
Methods inherited from SpecGuard
#===, #add, clear, clear_guards, finish, guards, #implementation?, #initialize, #os?, #platform?, #record, report, #report_key, #reporting?, ruby_version, #standard?, #unregister, windows?, #windows?, #wordsize?, #yield?
Constructor Details
This class inherits a constructor from SpecGuard
Instance Method Details
#match? ⇒ Boolean
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/mspec/guards/runner.rb', line 4 def match? @args.any? do |runner| case runner when :mspec ENV['MSPEC_RUNNER'] == '1' when :rspec ENV['RSPEC_RUNNER'] == '1' or Object.const_defined?(:Spec) else false end end end |