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

Version Path
rails_best_practices-1.23.2 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.23.1 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.23.0 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.22.1 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.22.0 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.21.0 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.20.1 spec/rails_best_practices/core/checks_loader_spec.rb