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



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

def ignored
  @ignored
end

#pollutionsObject

Returns the value of attribute pollutions



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

def pollutions
  @pollutions
end

#warningsObject

Returns the value of attribute warnings



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

def warnings
  @warnings
end

Instance Method Details

#polluted?Boolean



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

def polluted?
  pollutions.any?
end

#reportable?Boolean



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

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