Sha256: 2afc2b06cab5bc0deb266f9ab6166a9ab25437e8f2b4bc57ce6ee2d4fc8f1c2b
Contents?: true
Size: 763 Bytes
Versions: 5
Compression:
Stored size: 763 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' module RailsBestPractices::Core describe ChecksLoader do let(:checks_loader) { ChecksLoader.new(RailsBestPractices::Analyzer::DEFAULT_CONFIG) } describe 'load_lexicals' do it 'should load 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 'should load 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
5 entries across 5 versions & 1 rubygems