Class: Evilution::Integration::RSpec::UnresolvedSpecWarner Private

Inherits:
Object
  • Object
show all
Defined in:
lib/evilution/integration/rspec/unresolved_spec_warner.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initializeUnresolvedSpecWarner

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of UnresolvedSpecWarner.



6
7
8
# File 'lib/evilution/integration/rspec/unresolved_spec_warner.rb', line 6

def initialize
  @warned = Set.new
end

Instance Method Details

#call(file_path, fallback_to_full_suite:) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
13
14
15
# File 'lib/evilution/integration/rspec/unresolved_spec_warner.rb', line 10

def call(file_path, fallback_to_full_suite:)
  return if @warned.include?(file_path)

  @warned << file_path
  warn message(file_path, fallback_to_full_suite)
end