WpTheme::Versionable specs

This commit is contained in:
erwanlr
2013-03-26 16:04:10 +01:00
parent 40f4057d47
commit ba0af6edda
7 changed files with 78 additions and 202 deletions

View File

@@ -3,8 +3,10 @@
require 'spec_helper'
describe WpTheme do
it_behaves_like 'WpTheme::Versionable'
subject(:wp_theme) { WpTheme.new(uri, options) }
let(:uri) { URI.parse('http://example.com') }
let(:uri) { URI.parse('http://example.com/') }
let(:options) { { name: 'theme-name' } }
let(:theme_path) { 'wp-content/themes/theme-name/' }