improve regex and more samples

This commit is contained in:
Christian Mehlmauer
2015-01-20 00:35:46 +01:00
parent 8e08a20178
commit 0a0fe55427
5 changed files with 2094 additions and 1 deletions

View File

@@ -68,6 +68,27 @@ shared_examples 'WpItem::Versionable' do
@expected = '2.64'
end
end
context 'when parsing the changelog for version numbers' do
it 'returns it' do
@file = '/nextgen_gallery.txt'
@expected = '2.0.66.33'
end
end
context 'when parsing the changelog for version numbers' do
it 'returns it' do
@file = '/wp_user_frontend.txt'
@expected = '1.2.3'
end
end
context 'when parsing the changelog for version numbers' do
it 'returns it' do
@file = '/my_calendar.txt'
@expected = '2.1.5'
end
end
end
end
end