class Solargraph::Convention::Rspec
Public Instance Methods
local(source_map)
click to toggle source
# File lib/solargraph/convention/rspec.rb, line 6 def local source_map return EMPTY_ENVIRON unless File.basename(source_map.filename) =~ /_spec\.rb$/ @environ ||= Environ.new( requires: ['rspec'], domains: ['RSpec::Matchers', 'RSpec::ExpectationGroups'], # This override is necessary due to an erroneous @return tag in # rspec's YARD documentation. # @todo The return types have been fixed (https://github.com/rspec/rspec-expectations/pull/1121) pins: [ Solargraph::Pin::Reference::Override.method_return('RSpec::Matchers#expect', 'RSpec::Expectations::ExpectationTarget') ] ) end