WpTarget.error_404_hash moved to WebSite module

This commit is contained in:
erwanlr
2012-12-20 16:22:04 +01:00
parent 38c81384e8
commit b5390be6b5
4 changed files with 23 additions and 24 deletions

View File

@@ -120,4 +120,12 @@ shared_examples_for "WebSite" do
end
end
describe "#error_404_hash" do
it "should return the md5sum of the 404 page" do
stub_request(:any, /.*/).
to_return(:status => 404, :body => "404 page !")
web_site.error_404_hash.should === Digest::MD5.hexdigest("404 page !")
end
end
end

View File

@@ -83,15 +83,6 @@ describe WpTarget do
end
end
describe "#error_404_hash" do
it "should return the md5sum of the 404 page" do
stub_request(:any, /.*/).
to_return(:status => 404, :body => "404 page !")
@wp_target.error_404_hash.should === Digest::MD5.hexdigest("404 page !")
end
end
describe "#wp_content_dir" do
let(:fixtures_dir) { SPEC_FIXTURES_WPSCAN_WP_TARGET_DIR + "/wp_content_dir" }