Fix #77 facebook.com detected as a custom wp-content directory

This commit is contained in:
erwanlr
2012-12-06 21:01:14 -06:00
parent dc6c8b2eb8
commit a7df9feabf
3 changed files with 19 additions and 1 deletions

View File

@@ -107,6 +107,7 @@ describe WpTarget do
@expected = "hello-world"
end
it "should return 'wp-content'" do
@target_url = "http://lamp/wordpress-3.4.1"
@fixture = fixtures_dir + "/wordpress-3.4.1.htm"
@@ -155,6 +156,11 @@ describe WpTarget do
@expected = "wp-content"
end
it "should not detect facebook.com as a custom wp-content directory" do
@target_url = "http://lamp.localhost/"
@fixture = fixtures_dir + "/facebook-detection.htm"
@expected = nil
end
end
describe "#wp_plugins_dir" do