Sha256: 09643621d94b53b8522f50338f5e8eca2bf9fc1159837d55dfc4a8b0862f4e8e
Contents?: true
Size: 754 Bytes
Versions: 7
Compression:
Stored size: 754 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' module RailsBestPractices::Core describe ChecksLoader do let(:checks_loader) { described_class.new(RailsBestPractices::Analyzer::DEFAULT_CONFIG) } describe 'load_lexicals' do it 'loads lexical checks from the default configuration' do lexicals = checks_loader.load_lexicals expect(lexicals.map(&:class)).to include(RailsBestPractices::Lexicals::RemoveTrailingWhitespaceCheck) end end describe 'load_reviews' do it 'loads the reviews from the default the configuration' do reviews = checks_loader.load_reviews expect(reviews.map(&:class)).to include(RailsBestPractices::Reviews::AlwaysAddDbIndexReview) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems