Only output if different from style_url

This commit is contained in:
Christian Mehlmauer
2014-07-16 18:38:39 +02:00
parent 6ebb9b6f66
commit 26e0066c82
5 changed files with 7 additions and 7 deletions

View File

@@ -55,7 +55,7 @@ describe 'WpTheme::Findable' do
context 'when other style.css is referenced' do
it 'returns the WpTheme' do
@file = 'yootheme.html'
@expected = WpTheme.new(uri, name: 'yoo_solar_wp')
@expected = WpTheme.new(uri, name: 'yoo_solar_wp', referenced_url: '/wp-content/themes/yoo_solar_wp/styles/wood/css/style.css')
end
end

View File

@@ -29,7 +29,7 @@ describe WpTheme do
let(:theme_path) { 'wp-content/themes/theme-name/' }
describe '#allowed_options' do
its(:allowed_options) { is_expected.to include :additional_url }
its(:allowed_options) { is_expected.to include :referenced_url }
end
describe '#forge_uri' do