Adds passive WP version detection from stylesheets. Fix #478 - Ref #750

This commit is contained in:
erwanlr
2015-01-08 20:45:15 +01:00
parent 147a9e4968
commit 71fdef45c9
3 changed files with 42 additions and 0 deletions

View File

@@ -29,4 +29,12 @@ describe WpVersion do
end
end
describe '#all' do
let(:versions_file) { File.join(MODELS_FIXTURES, 'wp_version', 'findable', 'advanced_fingerprinting', 'wp_versions.xml') }
it 'returns the array containign the two versions' do
expect(WpVersion.all(versions_file)).to eq ['3.2.1', '3.2']
end
end
end