Implement lesser? method #862

This commit is contained in:
ethicalhack3r
2015-09-08 17:54:32 +02:00
parent a4a14c7e63
commit 2208f2a8c0
5 changed files with 156 additions and 25 deletions

View File

@@ -53,22 +53,6 @@ shared_examples 'WpItem::Infos' do
end
end
describe '#outdated?' do
it 'returns true if outdated' do
latest_version = '1.0'
installed_version = '0.1'
expect(subject.outdated?(installed_version, latest_version)).to be true
end
it 'returns false if not outdated' do
latest_version = '1.0'
installed_version = '1.0'
expect(subject.outdated?(installed_version, latest_version)).to be false
end
end
describe '#has_changelog?' do
after :each do
stub_request(:get, subject.changelog_url).to_return(status: @status)