From b121de8b2b2ec02cf460997562abfa489afe1144 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Mon, 28 Jan 2013 23:36:18 +0100 Subject: [PATCH] rspecs --- spec/lib/wpscan/wp_theme_spec.rb | 5 +++++ .../samples/wpscan/wp_theme/find/css_link/relative_urls.html | 1 + 2 files changed, 6 insertions(+) create mode 100644 spec/samples/wpscan/wp_theme/find/css_link/relative_urls.html diff --git a/spec/lib/wpscan/wp_theme_spec.rb b/spec/lib/wpscan/wp_theme_spec.rb index 67ea078b..6f4fc2c3 100644 --- a/spec/lib/wpscan/wp_theme_spec.rb +++ b/spec/lib/wpscan/wp_theme_spec.rb @@ -87,6 +87,11 @@ describe WpTheme do @fixture = fixtures_dir + '/inline_link_tag.html' @expected_name = 'inline' 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 describe '#find_from_wooframework' do diff --git a/spec/samples/wpscan/wp_theme/find/css_link/relative_urls.html b/spec/samples/wpscan/wp_theme/find/css_link/relative_urls.html new file mode 100644 index 00000000..f494bc2d --- /dev/null +++ b/spec/samples/wpscan/wp_theme/find/css_link/relative_urls.html @@ -0,0 +1 @@ +Test \ No newline at end of file