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