Sha256: f3dc21e93dc90b6622ffca894007192e284edd9b995ef74a466f3f751702f64c

Contents?: true

Size: 732 Bytes

Versions: 10

Compression:

Stored size: 732 Bytes

Contents

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

10 entries across 10 versions & 1 rubygems

Version Path
rails_best_practices-1.19.0 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.18.1 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.18.0 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.17.0 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.16.0 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.15.7 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.15.6 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.15.4 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.15.3 spec/rails_best_practices/core/checks_loader_spec.rb
rails_best_practices-1.15.2 spec/rails_best_practices/core/checks_loader_spec.rb