Replace "be_false" with "be false"
Replace "be_true" with "be true"
Ensure predicate method returns true or false
Remove unused variables
File.exists? is a deprecated name, use File.exist?
Fix warning: uninitialized instance variable
Fix warning: ambiguous first argument
Fix warning: URI.escape is obsolete