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

Version Path
rails_best_practices-1.20.0 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.19.5 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.19.4 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.19.3 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.19.2 spec/rails_best_practices/core/checks_loader_spec.rb