diff --git a/spec/record_extractor_spec.rb b/spec/record_extractor_spec.rb index a414c16..09c4200 100644 --- a/spec/record_extractor_spec.rb +++ b/spec/record_extractor_spec.rb @@ -162,6 +162,20 @@ describe(AlgoliaSearchRecordExtractor) do end describe 'tags' do + if restrict_jekyll_version(more_than: '3.0') + it 'should not throw a deprecation warning' do + # Given + input = fixture_post + + # When + input.tags + + # Then + expect(Jekyll.logger) + .to_not have_received(:warn).with('Deprecation:', any_args) + end + end + it 'should get tags from page' do # Given input = fixture_page