Sha256: e86e3fa353a92bf144307bffa78245bd1927aabeb3ec35f5572d1d303cd625c8
Contents?: true
Size: 757 Bytes
Versions: 8
Compression:
Stored size: 757 Bytes
Contents
# frozen_string_literal: true describe Nanoc::Checking::Runner do subject(:runner) { described_class.new(site) } let(:site) { double(:site) } describe '#check_classes_named' do subject { runner.check_classes_named(names) } context 'given one full name' do let(:names) { %w[internal_links] } it { is_expected.to eq([Nanoc::Checking::Checks::InternalLinks]) } end context 'given one full name with dash instead of underscore' do let(:names) { %w[internal-links] } it { is_expected.to eq([Nanoc::Checking::Checks::InternalLinks]) } end context 'given one abbreviated name' do let(:names) { %w[ilinks] } it { is_expected.to eq([Nanoc::Checking::Checks::InternalLinks]) } end end end
Version data entries
8 entries across 8 versions & 1 rubygems