This commit is contained in:
Christian Mehlmauer
2013-01-28 23:36:18 +01:00
parent a95c8a1fdf
commit b121de8b2b
2 changed files with 6 additions and 0 deletions

View File

@@ -87,6 +87,11 @@ describe WpTheme do
@fixture = fixtures_dir + '/inline_link_tag.html' @fixture = fixtures_dir + '/inline_link_tag.html'
@expected_name = 'inline' @expected_name = 'inline'
end end
it 'should get the theme name even if relative URLs are used' do
@fixture = fixtures_dir + '/relative_urls.html'
@expected_name = 'theme_name'
end
end end
describe '#find_from_wooframework' do describe '#find_from_wooframework' do

View File

@@ -0,0 +1 @@
<html><head><title>Test</title><link rel="stylesheet" type="text/css" href="/wp-content/themes/theme_name/style.css" /></head><body></body></html>