WpTimthumb::Versionable specs

This commit is contained in:
erwanlr
2013-03-26 17:12:57 +01:00
parent 65ca256a73
commit be0aad2c66
3 changed files with 62 additions and 3 deletions

View File

@@ -4,9 +4,10 @@ require 'spec_helper'
describe WpTimthumb do
it_behaves_like 'WpTimthumb::Existable'
it_behaves_like 'WpTimthumb::Versionable'
subject(:wp_timthumb) { WpTimthumb.new(uri, options) }
let(:uri) { URI.parse('http://example.com/') }
let(:options) { {} }
let(:options) { { path: 'path-to/a/timtuhumb.php' } }
end