Added spec for wp_content_dir when url has trailing slash, see commit 50436a83b5

This commit is contained in:
ethicalhack3r
2012-10-24 12:41:50 +02:00
parent 7e8d06ac0a
commit 5b1f2f7391
2 changed files with 6 additions and 0 deletions

BIN
lib/.browser.rb.swp Normal file

Binary file not shown.

View File

@@ -113,6 +113,12 @@ describe WpTarget do
@expected = "wp-content"
end
it "should return 'wp-content' if url has trailing slash" do
@target_url = "http://lamp/wordpress-3.4.1/"
@fixture = fixtures_dir + "/wordpress-3.4.1.htm"
@expected = "wp-content"
end
it "should find the default 'wp-content' dir even if the target_url is not the same (ie : the user supply an IP address and the url used in the code is a domain)" do
@target_url = "http://192.168.1.103/wordpress-3.4.1/"
@fixture = fixtures_dir + "/wordpress-3.4.1.htm"