advanced version detection

This commit is contained in:
Christian Mehlmauer
2015-01-19 23:38:26 +01:00
parent 2d39e5b1fa
commit 53f3ce8b1f
3 changed files with 86 additions and 1 deletions

View File

@@ -54,6 +54,13 @@ shared_examples 'WpItem::Versionable' do
@expected = '2.0.0-beta1'
end
end
context 'when parsing the changelog for version numbers' do
it 'returns it' do
@file = '/changelog_version.txt'
@expected = '1.3'
end
end
end
end
end