summaryrefslogtreecommitdiff
path: root/lib/tapicero/user_event_handler.rb
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2014-02-04 15:47:55 +0100
committerAzul <azul@riseup.net>2014-02-04 16:20:12 +0100
commit7bb4ab417c0275fcca03abe338b3b81c17b17a6e (patch)
tree5b6db1de8c82b57114f76372857d50ab111f9ca1 /lib/tapicero/user_event_handler.rb
parent5cd3df1a9be8e7db2f3e364fd730ed78c8d0e49f (diff)
prevent 409s and 412 and reraise them in tests
Including tests that ensure this
Diffstat (limited to 'lib/tapicero/user_event_handler.rb')
-rw-r--r--lib/tapicero/user_event_handler.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tapicero/user_event_handler.rb b/lib/tapicero/user_event_handler.rb
index d19e23d..38cf8f8 100644
--- a/lib/tapicero/user_event_handler.rb
+++ b/lib/tapicero/user_event_handler.rb
@@ -19,6 +19,8 @@ module Tapicero
end
end
+ protected
+
def prepare_db(id)
db = user_database(id)
db.create