test(tags): No deprecation for tags in 3.1.3

This commit is contained in:
Pixelastic 2016-07-06 18:09:39 +02:00
parent 5b5678e8cc
commit 635994dc5d

View File

@ -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