Skip to content

Commit

Permalink
no need to escape in tests anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
bvandenbos committed Jul 19, 2011
1 parent 04d8e47 commit 091d176
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/copyscape/request_base.rb
@@ -1,5 +1,4 @@
require 'forwardable'
require 'cgi'
require 'httparty'

module Copyscape
Expand Down
2 changes: 1 addition & 1 deletion test/text_search_test.rb
Expand Up @@ -10,7 +10,7 @@ class TextSearchTest < Test::Unit::TestCase
assert_equal '/', path
assert_equal 'joe', params[:u]
assert_equal '123abc', params[:k]
assert_equal 'this is some text', CGI.unescape(params[:t])
assert_equal 'this is some text', params[:t]
assert_equal 'csearch', params[:o]
assert_equal 'UTF-8', params[:e]
end
Expand Down
2 changes: 1 addition & 1 deletion test/url_search_test.rb
Expand Up @@ -10,7 +10,7 @@ class UrlSearchTest < Test::Unit::TestCase
assert_equal '/', path
assert_equal 'joe', params[:u]
assert_equal '123abc', params[:k]
assert_equal 'http://www.someurl.com/blah.html', CGI.unescape(params[:q])
assert_equal 'http://www.someurl.com/blah.html', params[:q]
assert_equal 'csearch', params[:o]
end
@search = Copyscape::UrlSearch.new('http://www.someurl.com/blah.html')
Expand Down

0 comments on commit 091d176

Please sign in to comment.