WpVersion specs

This commit is contained in:
erwanlr
2013-03-22 18:08:03 +01:00
parent 92414d0c2f
commit af4ecc4084
3 changed files with 31 additions and 14 deletions

View File

@@ -0,0 +1,16 @@
# encoding: UTF-8
require 'spec_helper'
describe WpVersion do
subject(:wp_version) { WpVersion.new(uri, options) }
let(:uri) { URI.parse('http://example.com') }
let(:options) { {} }
describe '#allowed_options' do
[:number, :found_from].each do |sym|
its(:allowed_options) { should include sym }
end
end
end