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