Class: RSpec::Hermetic::Verdict::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec/hermetic/verdict.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ignoredObject

Returns the value of attribute ignored

Returns:

  • (Object)

    the current value of ignored



6
7
8
# File 'lib/rspec/hermetic/verdict.rb', line 6

def ignored
  @ignored
end

#pollutionsObject

Returns the value of attribute pollutions

Returns:

  • (Object)

    the current value of pollutions



6
7
8
# File 'lib/rspec/hermetic/verdict.rb', line 6

def pollutions
  @pollutions
end

#warningsObject

Returns the value of attribute warnings

Returns:

  • (Object)

    the current value of warnings



6
7
8
# File 'lib/rspec/hermetic/verdict.rb', line 6

def warnings
  @warnings
end

Instance Method Details

#polluted?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/rspec/hermetic/verdict.rb', line 7

def polluted?
  pollutions.any?
end

#reportable?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/rspec/hermetic/verdict.rb', line 11

def reportable?
  polluted? || warnings.any?
end