make list spec pass

This commit is contained in:
2025-08-28 09:07:47 -05:00
parent 1531722db5
commit 948a787bea
7 changed files with 252 additions and 171 deletions
+9
View File
@@ -25,6 +25,15 @@ module JSON
'ruby_class'
end
end
# URI.escape was deprecated, use CGI escape insted. This is for the version of paperclip still using the URI variant
# If the testsuite runs without this code, please remove it
module URI
def self.escape(*args)
CGI.escape(*args)
end
end
if Rails.env.development?
class CouchRest::Connection
alias_method :old_execute, :execute
+2 -2
View File
@@ -1,13 +1,13 @@
development:
validation_framework: :active_model #optional
#database: "http://mozo:secret@localhost:5984/qwaiter_development"
database: "http://admin:<%= ENV['COUCHDB_ADMIN_PASSWORD']%>@localhost:15984/mozo_development"
database: "http://admin:<%= ENV['COUCHDB_ADMIN_PASSWORD']%>@localhost:5984/mozo_development"
#database: mozo_development
test:
validation_framework: :active_model #optional
#database: "http://mozo:secret@localhost:5984/qwaiter_test"
#Testing can only be done as couchdb admin, since it requires creating and destroying the database
database: "http://admin:<%= ENV['COUCHDB_ADMIN_PASSWORD']%>@localhost:15984/mozo_test"
database: "http://admin:<%= ENV['COUCHDB_ADMIN_PASSWORD']%>@localhost:5984/mozo_test"
# database: "http://admin:secret@localhost:5984/qwaiter_test"
production:
validation_framework: :active_model #optional