WebSite::page_hash Better comments detection

This commit is contained in:
erwanlr
2013-04-16 16:42:37 +02:00
parent f904c3241a
commit 788122c5d6
2 changed files with 5 additions and 2 deletions

View File

@@ -193,7 +193,10 @@ describe 'WebSite' do
end
context 'when there are comments' do
let(:page) { Typhoeus::Response.new(body: "yolo\n\n<!--I should no longer be there -->\nworld!") }
let(:page) {
body = "yolo\n\n<!--I should <script>no longer be</script> there -->\nworld!"
Typhoeus::Response.new(body: body)
}
it 'removes them' do
@expected = "yolo\n\n\nworld!"