test/dummy/log/test.log in invoice_bar-0.0.6 vs test/dummy/log/test.log in invoice_bar-0.0.7
- old
+ new
@@ -1,8610 +1,2888 @@
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.6ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (3.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
- [1m[36m (2.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
-Migrating to CreateInvoiceBarAddresses (20121012142346)
- [1m[35m (0.0ms)[0m select sqlite_version(*)
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.7ms)[0m CREATE TABLE "invoice_bar_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255) NOT NULL, "street_number" varchar(255) NOT NULL, "city" varchar(255) NOT NULL, "city_part" varchar(255), "postcode" varchar(255) NOT NULL, "extra_address_line" varchar(255), "addressable_id" integer NOT NULL, "addressable_type" varchar(255) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121012142346')[0m
- [1m[35m (3.9ms)[0m commit transaction
-Migrating to CreateInvoiceBarInvoiceTemplates (20121012142357)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.6ms)[0m CREATE TABLE "invoice_bar_invoice_templates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "issue_date" date, "due_date" date, "contact_name" varchar(255), "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer, "payment_identification_number" integer, "account_id" integer, "amount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_invoice_bar_invoice_templates_on_name" ON "invoice_bar_invoice_templates" ("name")[0m
- [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142357')
- [1m[36m (2.5ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarInvoices (20121012142418)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.6ms)[0m [1mCREATE TABLE "invoice_bar_invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" integer NOT NULL, "issue_date" date NOT NULL, "due_date" date NOT NULL, "contact_name" varchar(255) NOT NULL, "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer NOT NULL, "payment_identification_number" integer, "account_id" integer NOT NULL, "amount" integer NOT NULL, "sent" boolean DEFAULT 'f' NOT NULL, "paid" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_invoices_on_number" ON "invoice_bar_invoices" ("number")
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_invoice_bar_invoices_on_contact_name" ON "invoice_bar_invoices" ("contact_name")[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_invoice_bar_invoices_on_contact_ic" ON "invoice_bar_invoices" ("contact_ic")
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_invoice_bar_invoices_on_payment_identification_number" ON "invoice_bar_invoices" ("payment_identification_number")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142418')
- [1m[36m (2.8ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarAccounts (20121012142428)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.7ms)[0m [1mCREATE TABLE "invoice_bar_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "user_id" integer NOT NULL, "bank_account_number" varchar(255), "iban" varchar(255), "swift" varchar(255), "amount" integer DEFAULT 0 NOT NULL, "currency_id" integer DEFAULT 1 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_invoice_bar_accounts_on_name" ON "invoice_bar_accounts" ("name")
- [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121012142428')[0m
- [1m[35m (2.5ms)[0m commit transaction
-Migrating to CreateInvoiceBarItems (20121012142442)
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m CREATE TABLE "invoice_bar_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "price" integer NOT NULL, "unit" varchar(255), "number" integer, "amount" integer NOT NULL, "itemable_id" integer NOT NULL, "itemable_type" varchar(255) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_invoice_bar_items_on_name" ON "invoice_bar_items" ("name")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142442')
- [1m[36m (2.4ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarCurrencies (20121012142454)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "invoice_bar_currencies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "symbol" varchar(255) NOT NULL, "priority" integer DEFAULT 1 NOT NULL) [0m
- [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142454')
- [1m[36m (2.0ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarContacts (20121012142502)
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "invoice_bar_contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "email" varchar(255), "phone" varchar(255), "web" varchar(255), "bank_account" varchar(255), "ic" integer, "dic" varchar(255), "user_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_contacts_on_name" ON "invoice_bar_contacts" ("name")
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_invoice_bar_contacts_on_ic" ON "invoice_bar_contacts" ("ic")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142502')
- [1m[36m (3.2ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarUsers (20121012144941)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (1.1ms)[0m [1mCREATE TABLE "invoice_bar_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) NOT NULL, "crypted_password" varchar(255), "salt" varchar(255), "remember_me_token" varchar(255), "remember_me_token_expires_at" datetime, "reset_password_token" varchar(255), "reset_password_token_expires_at" datetime, "reset_password_email_sent_at" datetime, "name" varchar(255) NOT NULL, "phone" varchar(255), "web" varchar(255), "ic" integer NOT NULL, "next_invoice_number" integer DEFAULT 1 NOT NULL, "next_bill_number" integer DEFAULT 1 NOT NULL, "next_received_bill_number" integer DEFAULT 1 NOT NULL, "invoice_number_format" varchar(255) DEFAULT '%Y%m%d%2' NOT NULL, "bill_number_format" varchar(255) DEFAULT '%Y%m%d%2' NOT NULL, "received_bill_number_format" varchar(255) DEFAULT '%Y%m%d%2' NOT NULL, "administrator" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_users_on_reset_password_token" ON "invoice_bar_users" ("reset_password_token")
- [1m[36m (0.3ms)[0m [1mCREATE INDEX "index_invoice_bar_users_on_remember_me_token" ON "invoice_bar_users" ("remember_me_token")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012144941')
- [1m[36m (2.4ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarReceipts (20121205185321)
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "invoice_bar_receipts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" integer NOT NULL, "issue_date" date NOT NULL, "contact_name" varchar(255) NOT NULL, "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer NOT NULL, "account_id" integer NOT NULL, "amount" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.3ms)[0m CREATE INDEX "index_invoice_bar_receipts_on_number" ON "invoice_bar_receipts" ("number")
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_invoice_bar_receipts_on_contact_name" ON "invoice_bar_receipts" ("contact_name")[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_receipts_on_contact_ic" ON "invoice_bar_receipts" ("contact_ic")
- [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121205185321')[0m
- [1m[35m (3.0ms)[0m commit transaction
-Migrating to CreateInvoiceBarReceiptTemplates (20121205185353)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m CREATE TABLE "invoice_bar_receipt_templates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "issue_date" date, "contact_name" varchar(255), "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer, "account_id" integer, "amount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_invoice_bar_receipt_templates_on_name" ON "invoice_bar_receipt_templates" ("name")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121205185353')
- [1m[36m (2.7ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'demarcus.beatty@schillergutkowski.info' LIMIT 1[0m
- [1m[35mSQL (39.8ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 20:43:13 UTC +00:00], ["crypted_password", nil], ["email", "demarcus.beatty@schillergutkowski.info"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 20:43:13 UTC +00:00], ["web", nil]]
- [1m[36mSQL (36.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 20:43:13 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 20:43:13 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'name' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 20:43:13 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "name"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 20:43:13 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'name' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'name' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36m (1.5ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'colby.kohler@collins.info' LIMIT 1[0m
- [1m[35mSQL (6.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 20:43:33 UTC +00:00], ["crypted_password", nil], ["email", "colby.kohler@collins.info"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 20:43:33 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 20:43:33 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 20:43:33 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'name' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 20:43:33 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "name"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 20:43:33 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'name' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'name' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36m (2.0ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'elvis@ruecker.org' LIMIT 1[0m
- [1m[35mSQL (7.2ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 20:53:19 UTC +00:00], ["crypted_password", nil], ["email", "elvis@ruecker.org"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 20:53:19 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 20:53:19 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 20:53:19 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'name' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 20:53:19 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "name"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 20:53:19 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'name' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'name' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36m (2.1ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" IS NULL AND "invoice_bar_accounts"."user_id" IS NULL[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'olin@bergnaum.net' LIMIT 1[0m
- [1m[35mSQL (6.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 20:53:48 UTC +00:00], ["crypted_password", nil], ["email", "olin@bergnaum.net"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 20:53:48 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 20:53:48 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 20:53:48 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'name' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 20:53:48 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "name"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 20:53:48 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'name' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'name' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36m (1.3ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'bernard_hane@purdy.net' LIMIT 1[0m
- [1m[35mSQL (6.9ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 20:57:29 UTC +00:00], ["crypted_password", nil], ["email", "bernard_hane@purdy.net"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 20:57:29 UTC +00:00], ["web", nil]]
- [1m[36mSQL (6.9ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 20:57:29 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 20:57:29 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 20:57:29 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 20:57:29 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (2.9ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'carlotta.breitenberg@pagac.org' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["crypted_password", nil], ["email", "carlotta.breitenberg@pagac.org"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jordane.larson@mcdermott.org' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["crypted_password", nil], ["email", "jordane.larson@mcdermott.org"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'misael@schimmel.biz' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["crypted_password", nil], ["email", "misael@schimmel.biz"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'twila_ritchie@mcculloughhuel.biz' LIMIT 1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["crypted_password", nil], ["email", "twila_ritchie@mcculloughhuel.biz"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jacques_kirlin@altenwerth.biz' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["crypted_password", nil], ["email", "jacques_kirlin@altenwerth.biz"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'karelle@kulas.biz' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["crypted_password", nil], ["email", "karelle@kulas.biz"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (1.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 20:57:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'nathaniel_feeney@homenick.org' LIMIT 1[0m
- [1m[35mSQL (7.0ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["crypted_password", nil], ["email", "nathaniel_feeney@homenick.org"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.9ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'magali.heaney@watsicaferry.com' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["crypted_password", nil], ["email", "magali.heaney@watsicaferry.com"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jarret_ko@haley.net' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["crypted_password", nil], ["email", "jarret_ko@haley.net"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'maurine@lesch.biz' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["crypted_password", nil], ["email", "maurine@lesch.biz"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'quinn@goldner.com' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["crypted_password", nil], ["email", "quinn@goldner.com"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'paris@kunde.com' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["crypted_password", nil], ["email", "paris@kunde.com"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'elva.bernhard@douglasquigley.org' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["crypted_password", nil], ["email", "elva.bernhard@douglasquigley.org"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:02:21 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.1ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'melody.borer@bayer.org' LIMIT 1[0m
- [1m[35mSQL (6.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:03:22 UTC +00:00], ["crypted_password", nil], ["email", "melody.borer@bayer.org"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:03:22 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:03:22 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:03:22 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:03:22 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:03:22 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (2.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'brandt@mcdermott.biz' LIMIT 1[0m
- [1m[35mSQL (6.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:08:59 UTC +00:00], ["crypted_password", nil], ["email", "brandt@mcdermott.biz"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:08:59 UTC +00:00], ["web", nil]]
- [1m[36mSQL (6.9ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:08:59 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:08:59 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:08:59 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:08:59 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (2.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'keaton@grant.net' LIMIT 1[0m
- [1m[35mSQL (6.9ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:11:59 UTC +00:00], ["crypted_password", nil], ["email", "keaton@grant.net"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:11:59 UTC +00:00], ["web", nil]]
- [1m[36mSQL (6.9ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:11:59 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:11:59 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:11:59 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:11:59 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#index as HTML
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" LIMIT 25 OFFSET 0
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/index.html.erb within invoice_bar/layouts/signed_in (88.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (1.0ms)
-Completed 200 OK in 237ms (Views: 235.9ms | ActiveRecord: 0.3ms)
- [1m[35m (1.3ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'haylie@collins.name' LIMIT 1[0m
- [1m[35mSQL (6.4ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:13:43 UTC +00:00], ["crypted_password", nil], ["email", "haylie@collins.name"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:13:43 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00]]
- [1m[35m (1.2ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (2.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'rusty@schroeder.org' LIMIT 1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["crypted_password", nil], ["email", "rusty@schroeder.org"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'dorthy@kovacek.name' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["crypted_password", nil], ["email", "dorthy@kovacek.name"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#edit as HTML
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+--------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#index as JSON
+Completed 200 OK in 6ms (Views: 2.0ms | ActiveRecord: 0.3ms)
+--------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact
+--------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.2ms)
- [1m[36mInvoiceBar::Address Load (0.2ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (64.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 219ms (Views: 216.9ms | ActiveRecord: 0.3ms)
- [1m[35m (1.5ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'edd.dickens@schultz.name' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["crypted_password", nil], ["email", "edd.dickens@schultz.name"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#index as HTML
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" LIMIT 25 OFFSET 0
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.3ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'mohammad_yost@langworth.info' LIMIT 1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["crypted_password", nil], ["email", "mohammad_yost@langworth.info"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#new as HTML
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 0.1ms)
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'marcelina@rutherford.org' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["crypted_password", nil], ["email", "marcelina@rutherford.org"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#show as HTML
+Completed 200 OK in 16ms (ActiveRecord: 1.9ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_update_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#update as JSON
+ Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 13ms (Views: 5.5ms | ActiveRecord: 0.4ms)
+-----------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_show_contact
+-----------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.1ms)
- [1m[36m (1.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'zula@kuvalis.biz' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["crypted_password", nil], ["email", "zula@kuvalis.biz"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:13:44 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.2ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'melia_mraz@sawayn.biz' LIMIT 1[0m
- [1m[35mSQL (6.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["crypted_password", nil], ["email", "melia_mraz@sawayn.biz"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
- [1m[36m (2.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'triston.hodkiewicz@homenick.net' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["crypted_password", nil], ["email", "triston.hodkiewicz@homenick.net"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- [1m[35m (1.5ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'seamus.monahan@kuhic.biz' LIMIT 1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["crypted_password", nil], ["email", "seamus.monahan@kuhic.biz"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#edit as HTML
+Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_create_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#create as JSON
+ Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}}
+Completed 201 Created in 7ms (Views: 1.0ms | ActiveRecord: 0.6ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#create as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}}
+Completed 201 Created in 34ms (Views: 2.5ms | ActiveRecord: 2.3ms)
+----------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#index as JSON
+Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#update as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 23ms (Views: 0.8ms | ActiveRecord: 2.0ms)
+-------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.7ms)
- [1m[36mInvoiceBar::Address Load (0.2ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (34.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.6ms)
-Completed 200 OK in 179ms (Views: 176.1ms | ActiveRecord: 0.4ms)
- [1m[35m (1.9ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'serena@oreilly.info' LIMIT 1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["crypted_password", nil], ["email", "serena@oreilly.info"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#index as HTML
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" LIMIT 25 OFFSET 0
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 13ms (Views: 11.2ms | ActiveRecord: 0.3ms)
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'weston@mosciski.org' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["crypted_password", nil], ["email", "weston@mosciski.org"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#new as HTML
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (7.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 14ms (Views: 12.1ms | ActiveRecord: 0.1ms)
- [1m[35m (1.4ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'amparo@lowe.name' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["crypted_password", nil], ["email", "amparo@lowe.name"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:15:03 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:15:04 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:15:04 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:15:04 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:15:04 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#show as HTML
+Completed 200 OK in 8ms (ActiveRecord: 0.7ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.1ms)
- [1m[36m (1.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'valentina.haag@hane.com' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:15:04 UTC +00:00], ["crypted_password", nil], ["email", "valentina.haag@hane.com"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:15:04 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:15:04 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:15:04 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:15:04 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:15:04 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.3ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'rey@gulgowskimoore.name' LIMIT 1[0m
- [1m[35mSQL (6.4ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:16:24 UTC +00:00], ["crypted_password", nil], ["email", "rey@gulgowskimoore.name"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:16:24 UTC +00:00], ["web", nil]]
- [1m[36mSQL (6.9ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:16:24 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:16:24 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:16:24 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:16:24 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 224ms (ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
- [1m[36m (1.8ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'susie_kulas@ullrichnikolaus.com' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["crypted_password", nil], ["email", "susie_kulas@ullrichnikolaus.com"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
-Processing by InvoiceBar::ContactsController#destroy as HTML
+Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.2ms)
+-------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Address Load (0.2ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ?[0m [["id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 34ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- [1m[35m (1.4ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'carmella.murphy@thompson.com' LIMIT 1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["crypted_password", nil], ["email", "carmella.murphy@thompson.com"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#edit as HTML
+Completed 200 OK in 17ms (ActiveRecord: 1.8ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#update as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 41ms (Views: 9.0ms | ActiveRecord: 2.6ms)
+----------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#index as JSON
+Completed 200 OK in 13ms (Views: 4.1ms | ActiveRecord: 0.9ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- [1m[36mInvoiceBar::Address Load (0.2ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 68ms (Views: 66.4ms | ActiveRecord: 0.2ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jovanny.leuschke@sauer.name' LIMIT 1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["crypted_password", nil], ["email", "jovanny.leuschke@sauer.name"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#index as HTML
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" LIMIT 25 OFFSET 0
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.2ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'adolfo.kuhlman@flatleyheller.com' LIMIT 1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["crypted_password", nil], ["email", "adolfo.kuhlman@flatleyheller.com"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#new as HTML
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 15ms (Views: 11.9ms | ActiveRecord: 0.1ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'noah_bergstrom@bartolettigreenfelder.org' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["crypted_password", nil], ["email", "noah_bergstrom@bartolettigreenfelder.org"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#show as HTML
+Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.1ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#create as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
+Completed 201 Created in 17ms (Views: 0.7ms | ActiveRecord: 1.8ms)
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#update as JSON
+ Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"}
+Completed 200 OK in 11ms (Views: 3.9ms | ActiveRecord: 0.8ms)
+--------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency
+--------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.1ms)
- [1m[36m (1.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'winnifred_macgyver@carter.net' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["crypted_password", nil], ["email", "winnifred_macgyver@carter.net"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:16:25 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36mInvoiceBar::Contact Load (0.1ms)[0m [1mSELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
- [1m[35m (1.3ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jordi@powlowski.name' LIMIT 1[0m
- [1m[35mSQL (6.4ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["crypted_password", nil], ["email", "jordi@powlowski.name"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 175ms (ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
- [1m[36m (1.9ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'oleta@herman.biz' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["crypted_password", nil], ["email", "oleta@herman.biz"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
-Processing by InvoiceBar::ContactsController#destroy as HTML
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+----------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_get_index
+----------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#index as JSON
+Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.6ms)
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#create as JSON
+ Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}}
+Completed 201 Created in 12ms (Views: 0.5ms | ActiveRecord: 2.3ms)
+-----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency
+-----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Address Load (0.2ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ?[0m [["id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 33ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- [1m[35m (1.3ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'alverta.streich@yundt.name' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["crypted_password", nil], ["email", "alverta.streich@yundt.name"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#edit as HTML
+Completed 200 OK in 11ms (ActiveRecord: 1.4ms)
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice
+-------------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#create as JSON
+ Parameters: {"invoice"=>{"number"=>"201001122", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}}
+Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.1ms)
+--------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#index as JSON
+Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice
+-------------------------------------------------------------------
+--------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice
+--------------------------------------------------------------------
+-----------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice
+-----------------------------------------------------------------
+-----------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt
+-----------------------------------------------------------------
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt
+-------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#create as JSON
+ Parameters: {"receipt"=>{"number"=>"201001129", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}}
+Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.1ms)
+--------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#index as JSON
+Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 0.4ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt
+-------------------------------------------------------------------
+--------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt
+--------------------------------------------------------------------
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_create_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#create as JSON
+ Parameters: {"user"=>{"name"=>"Name 32", "email"=>"rowena@purdy.io", "ic"=>3278974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
+Unpermitted parameter: ic
+Completed 422 Unprocessable Entity in 36ms (Views: 0.8ms | ActiveRecord: 1.3ms)
+--------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_destroy_user
+--------------------------------------------------------------
+Processing by InvoiceBar::UsersController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- [1m[36mInvoiceBar::Address Load (0.2ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 71ms (Views: 68.6ms | ActiveRecord: 0.2ms)
- [1m[35m (1.3ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'novella@gerhold.org' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["crypted_password", nil], ["email", "novella@gerhold.org"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#index as HTML
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" LIMIT 25 OFFSET 0
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 16ms (Views: 13.8ms | ActiveRecord: 0.3ms)
- [1m[35m (1.4ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'summer_volkman@macejkovichilpert.biz' LIMIT 1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["crypted_password", nil], ["email", "summer_volkman@macejkovichilpert.biz"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (1.0ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#new as HTML
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (7.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.1ms)
- [1m[35m (1.3ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'koby_gerhold@collins.net' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["crypted_password", nil], ["email", "koby_gerhold@collins.net"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#show as HTML
+Completed 200 OK in 51ms (ActiveRecord: 9.5ms)
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_get_index
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#index as JSON
+Completed 200 OK in 16ms (Views: 11.8ms | ActiveRecord: 1.6ms)
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_show_user
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.1ms)
- [1m[36m (1.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'rylee@mcdermott.info' LIMIT 1
- [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["crypted_password", nil], ["email", "rylee@mcdermott.info"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36mInvoiceBar::Contact Load (0.1ms)[0m [1mSELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
- [1m[35m (1.3ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'mitchel_treutel@sanford.org' LIMIT 1[0m
- [1m[35mSQL (6.4ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:18:29 UTC +00:00], ["crypted_password", nil], ["email", "mitchel_treutel@sanford.org"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:18:29 UTC +00:00], ["web", nil]]
- [1m[36mSQL (6.9ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:18:29 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:18:29 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 176ms (ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
- [1m[36m (2.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'dahlia@terrybartoletti.info' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["crypted_password", nil], ["email", "dahlia@terrybartoletti.info"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
-Processing by InvoiceBar::ContactsController#destroy as HTML
+Completed 200 OK in 12ms (Views: 8.7ms | ActiveRecord: 0.2ms)
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_update_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#update as JSON
+ Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "ic"=>3678974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"}
+Unpermitted parameter: ic
+Completed 422 Unprocessable Entity in 70ms (Views: 1.3ms | ActiveRecord: 4.9ms)
+--------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_destroy_account
+--------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Address Load (0.2ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ?[0m [["id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 33ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- [1m[35m (1.5ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'casper@crist.info' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["crypted_password", nil], ["email", "casper@crist.info"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#edit as HTML
+Completed 200 OK in 10ms (ActiveRecord: 1.5ms)
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_update_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#update as JSON
+ Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 16ms (Views: 9.1ms | ActiveRecord: 0.7ms)
+--------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#index as JSON
+Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms)
+-----------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_show_account
+-----------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- [1m[36mInvoiceBar::Address Load (0.2ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 74ms (Views: 72.6ms | ActiveRecord: 0.2ms)
- [1m[35m (1.3ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'matilde@mcglynnstroman.com' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["crypted_password", nil], ["email", "matilde@mcglynnstroman.com"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#index as HTML
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" LIMIT 25 OFFSET 0
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.2ms)
- [1m[35m (1.3ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'elsa@cremin.name' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["crypted_password", nil], ["email", "elsa@cremin.name"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#new as HTML
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.1ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'christian@simonisfranecki.info' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["crypted_password", nil], ["email", "christian@simonisfranecki.info"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#show as HTML
+Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_create_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#create as JSON
+ Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}}
+Completed 201 Created in 15ms (Views: 0.9ms | ActiveRecord: 2.1ms)
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+-----------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_show_account
+-----------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.1ms)
- [1m[36m (1.2ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'cullen@brakus.net' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["crypted_password", nil], ["email", "cullen@brakus.net"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:18:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36mInvoiceBar::Contact Load (0.1ms)[0m [1mSELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
- [1m[35m (1.4ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'carlo.legros@bogan.name' LIMIT 1[0m
- [1m[35mSQL (9.2ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00], ["crypted_password", nil], ["email", "carlo.legros@bogan.name"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 181ms (ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
- [1m[36m (2.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'bertram@ullrich.net' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00], ["crypted_password", nil], ["email", "bertram@ullrich.net"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
-Processing by InvoiceBar::ContactsController#destroy as HTML
+Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 0.4ms)
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_update_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#update as JSON
+ Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 17ms (Views: 2.9ms | ActiveRecord: 1.2ms)
+--------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_destroy_account
+--------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Address Load (0.2ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ?[0m [["id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 39ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- [1m[35m (1.6ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'justice@zboncaktoy.org' LIMIT 1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00], ["crypted_password", nil], ["email", "justice@zboncaktoy.org"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:22:00 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#edit as HTML
+Completed 200 OK in 2ms (ActiveRecord: 0.3ms)
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_create_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#create as JSON
+ Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}}
+Completed 201 Created in 22ms (Views: 0.8ms | ActiveRecord: 0.8ms)
+--------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#index as JSON
+Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_get_index
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#index as JSON
+Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.2ms)
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_show_user
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- [1m[36mInvoiceBar::Address Load (0.2ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.8ms)
-Completed 200 OK in 71ms (Views: 69.7ms | ActiveRecord: 0.2ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'stanford.crona@thiel.info' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["crypted_password", nil], ["email", "stanford.crona@thiel.info"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#index as HTML
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" LIMIT 25 OFFSET 0
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.3ms)
- [1m[35m (1.3ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'tyree@whiterohan.name' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["crypted_password", nil], ["email", "tyree@whiterohan.name"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#new as HTML
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.1ms)
- [1m[35m (1.4ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'aaliyah_maggio@kuphal.net' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["crypted_password", nil], ["email", "aaliyah_maggio@kuphal.net"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#show as HTML
+Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
+--------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_destroy_user
+--------------------------------------------------------------
+Processing by InvoiceBar::UsersController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.1ms)
- [1m[36m (1.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'orlando_wilderman@sengersteuber.net' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["crypted_password", nil], ["email", "orlando_wilderman@sengersteuber.net"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:01 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36mInvoiceBar::Contact Load (0.1ms)[0m [1mSELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
- [1m[35m (1.6ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'carleton.renner@fadel.biz' LIMIT 1[0m
- [1m[35mSQL (6.4ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["crypted_password", nil], ["email", "carleton.renner@fadel.biz"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["web", nil]]
- [1m[36mSQL (6.9ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 171ms (ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
- [1m[36m (1.9ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'josianne_bogan@dach.net' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["crypted_password", nil], ["email", "josianne_bogan@dach.net"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
-Processing by InvoiceBar::ContactsController#destroy as HTML
+Completed 200 OK in 55ms (ActiveRecord: 7.9ms)
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_update_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#update as JSON
+ Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "ic"=>978974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"}
+Unpermitted parameter: ic
+Completed 422 Unprocessable Entity in 54ms (Views: 0.5ms | ActiveRecord: 5.0ms)
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_create_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#create as JSON
+ Parameters: {"user"=>{"name"=>"Name 11", "email"=>"cornelius.rath@hintz.org", "ic"=>1178974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
+Unpermitted parameter: ic
+Completed 422 Unprocessable Entity in 15ms (Views: 1.5ms | ActiveRecord: 1.3ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#update as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 25ms (Views: 2.1ms | ActiveRecord: 1.5ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#create as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}}
+Completed 201 Created in 19ms (Views: 6.3ms | ActiveRecord: 1.5ms)
+-------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Address Load (0.2ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ?[0m [["id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 37ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- [1m[35m (1.6ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'waino@welch.info' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["crypted_password", nil], ["email", "waino@welch.info"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00]]
- [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:30 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#edit as HTML
+Completed 200 OK in 16ms (ActiveRecord: 1.2ms)
+----------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#index as JSON
+Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.3ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.8ms)
- [1m[36mInvoiceBar::Address Load (0.1ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (11.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 72ms (Views: 69.6ms | ActiveRecord: 0.2ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'alia_grant@legrospowlowski.org' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["crypted_password", nil], ["email", "alia_grant@legrospowlowski.org"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#index as HTML
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" LIMIT 25 OFFSET 0
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 0.3ms)
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jerry_kovacek@vandervort.com' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["crypted_password", nil], ["email", "jerry_kovacek@vandervort.com"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#new as HTML
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 0.1ms)
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'selena@fritsch.com' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["crypted_password", nil], ["email", "selena@fritsch.com"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#show as HTML
+Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.1ms)
+----------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_get_index
+----------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#index as JSON
+Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.8ms)
+--------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency
+--------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.1ms)
- [1m[36m (1.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'cortney@boehm.name' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["crypted_password", nil], ["email", "cortney@boehm.name"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:22:31 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36mInvoiceBar::Contact Load (0.1ms)[0m [1mSELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
- [1m[35m (1.2ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'carmen@walker.info' LIMIT 1[0m
- [1m[35mSQL (10.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:24:11 UTC +00:00], ["crypted_password", nil], ["email", "carmen@walker.info"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:24:11 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:24:11 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:24:11 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:24:11 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:24:11 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:24:11 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:24:11 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 193ms (ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
- [1m[36m (2.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'simeon.sauer@stiedemannwehner.org' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["crypted_password", nil], ["email", "simeon.sauer@stiedemannwehner.org"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
-Processing by InvoiceBar::ContactsController#destroy as HTML
+Completed 200 OK in 14ms (Views: 3.7ms | ActiveRecord: 0.8ms)
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#create as JSON
+ Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}}
+Completed 201 Created in 31ms (Views: 4.3ms | ActiveRecord: 3.9ms)
+-----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency
+-----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Address Load (0.2ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ?[0m [["id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 32ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jarrett@cruickshankfay.name' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["crypted_password", nil], ["email", "jarrett@cruickshankfay.name"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#edit as HTML
+Completed 200 OK in 13ms (ActiveRecord: 2.2ms)
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#update as JSON
+ Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"}
+Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.6ms)
+--------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice
+--------------------------------------------------------------------
+--------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#index as JSON
+Completed 200 OK in 10ms (Views: 2.1ms | ActiveRecord: 0.3ms)
+-----------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice
+-----------------------------------------------------------------
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice
+-------------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#create as JSON
+ Parameters: {"invoice"=>{"number"=>"201001125", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}}
+Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.1ms)
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice
+-------------------------------------------------------------------
+----------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#index as JSON
+Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#create as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
+Completed 201 Created in 10ms (Views: 1.2ms | ActiveRecord: 0.9ms)
+-------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.8ms)
- [1m[36mInvoiceBar::Address Load (0.2ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (12.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (55.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.7ms)
-Completed 200 OK in 136ms (Views: 133.6ms | ActiveRecord: 0.3ms)
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'asa@bruenmraz.biz' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["crypted_password", nil], ["email", "asa@bruenmraz.biz"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#index as HTML
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" LIMIT 25 OFFSET 0
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 18ms (Views: 16.0ms | ActiveRecord: 0.3ms)
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'yasmin_maggio@daughertyritchie.net' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["crypted_password", nil], ["email", "yasmin_maggio@daughertyritchie.net"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#new as HTML
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (10.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 21ms (Views: 18.2ms | ActiveRecord: 0.1ms)
- [1m[35m (1.5ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jettie_hansen@prosacco.com' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["crypted_password", nil], ["email", "jettie_hansen@prosacco.com"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["web", nil]]
- [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#show as HTML
+Completed 200 OK in 6ms (ActiveRecord: 0.7ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.1ms)
- [1m[36m (1.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'josiah@jacobi.com' LIMIT 1
- [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["crypted_password", nil], ["email", "josiah@jacobi.com"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:24:12 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36mInvoiceBar::Contact Load (0.1ms)[0m [1mSELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 13ms (ActiveRecord: 0.0ms)
- [1m[35m (1.4ms)[0m rollback transaction
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'helene@connhyatt.info' LIMIT 1[0m
- [1m[35mSQL (6.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["crypted_password", nil], ["email", "helene@connhyatt.info"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 202ms (ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
- [1m[36m (2.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'alverta.veum@willrunolfon.info' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["crypted_password", nil], ["email", "alverta.veum@willrunolfon.info"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
-Processing by InvoiceBar::ContactsController#destroy as HTML
+Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.3ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#update as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 11ms (Views: 0.9ms | ActiveRecord: 0.9ms)
+--------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#index as JSON
+Completed 200 OK in 6ms (Views: 1.3ms | ActiveRecord: 0.3ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_update_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#update as JSON
+ Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 17ms (Views: 2.2ms | ActiveRecord: 0.8ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_create_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#create as JSON
+ Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}}
+Completed 201 Created in 21ms (Views: 7.3ms | ActiveRecord: 1.1ms)
+--------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact
+--------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Address Load (0.2ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ?[0m [["id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 40ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- [1m[35m (1.3ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'karl_kertzmann@hills.name' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["crypted_password", nil], ["email", "karl_kertzmann@hills.name"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#edit as HTML
+Completed 200 OK in 19ms (ActiveRecord: 2.6ms)
+-----------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_show_contact
+-----------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- [1m[36mInvoiceBar::Address Load (0.2ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (10.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 74ms (Views: 72.1ms | ActiveRecord: 0.3ms)
- [1m[35m (1.4ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'coleman.kuhic@simonis.info' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["crypted_password", nil], ["email", "coleman.kuhic@simonis.info"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#index as HTML
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" LIMIT 25 OFFSET 0
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 0.2ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'lilla@braundickinson.name' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["crypted_password", nil], ["email", "lilla@braundickinson.name"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:28:02 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#new as HTML
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (9.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 18ms (Views: 15.2ms | ActiveRecord: 0.2ms)
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'kaelyn@macgyver.com' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:28:03 UTC +00:00], ["crypted_password", nil], ["email", "kaelyn@macgyver.com"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:28:03 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:28:03 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:28:03 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:28:03 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:28:03 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#show as HTML
+Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt
+-------------------------------------------------------------------
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt
+-------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#create as JSON
+ Parameters: {"receipt"=>{"number"=>"201001129", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}}
+Completed 500 Internal Server Error in 31ms (ActiveRecord: 0.4ms)
+-----------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt
+-----------------------------------------------------------------
+--------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt
+--------------------------------------------------------------------
+--------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#index as JSON
+Completed 200 OK in 25ms (Views: 10.2ms | ActiveRecord: 1.7ms)
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#create as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}}
+Completed 201 Created in 29ms (Views: 1.5ms | ActiveRecord: 2.2ms)
+----------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#index as JSON
+Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#update as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 17ms (Views: 3.4ms | ActiveRecord: 1.0ms)
+-------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.1ms)
- [1m[36m (1.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'gilbert@baumbach.org' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:28:03 UTC +00:00], ["crypted_password", nil], ["email", "gilbert@baumbach.org"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:28:03 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:28:03 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:28:03 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:28:03 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:28:03 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36mInvoiceBar::Contact Load (0.1ms)[0m [1mSELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
- [1m[35m (1.1ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'ceasar_hermann@bruenvandervort.com' LIMIT 1[0m
- [1m[35mSQL (6.4ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["crypted_password", nil], ["email", "ceasar_hermann@bruenvandervort.com"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 173ms (ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
- [1m[36m (2.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'ian.jacobson@ruecker.org' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["crypted_password", nil], ["email", "ian.jacobson@ruecker.org"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
-Processing by InvoiceBar::ContactsController#destroy as HTML
+Completed 200 OK in 13ms (ActiveRecord: 1.2ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Address Load (0.2ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ?[0m [["id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 38ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- [1m[35m (1.6ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'brody@runtebrown.com' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["crypted_password", nil], ["email", "brody@runtebrown.com"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#edit as HTML
+Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.2ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt
+-------------------------------------------------------------------
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt
+-------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#create as JSON
+ Parameters: {"receipt"=>{"number"=>"201001123", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}}
+Completed 422 Unprocessable Entity in 37ms (Views: 0.4ms | ActiveRecord: 1.9ms)
+--------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#index as JSON
+Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.7ms)
+-----------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt
+-----------------------------------------------------------------
+--------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt
+--------------------------------------------------------------------
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#create as JSON
+ Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}}
+Completed 201 Created in 31ms (Views: 4.6ms | ActiveRecord: 4.3ms)
+-----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency
+-----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.8ms)
- [1m[36mInvoiceBar::Address Load (0.2ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (10.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.6ms)
-Completed 200 OK in 71ms (Views: 69.5ms | ActiveRecord: 0.2ms)
- [1m[35m (1.3ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jayce.mcdermott@wiza.net' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["crypted_password", nil], ["email", "jayce.mcdermott@wiza.net"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#index as HTML
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" LIMIT 25 OFFSET 0
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.2ms)
- [1m[35m (1.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'eugene@howe.net' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["crypted_password", nil], ["email", "eugene@howe.net"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#new as HTML
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 15ms (Views: 13.1ms | ActiveRecord: 0.1ms)
- [1m[35m (1.5ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'merlin_gutmann@welchhudson.info' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["crypted_password", nil], ["email", "merlin_gutmann@welchhudson.info"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#show as HTML
+Completed 200 OK in 13ms (ActiveRecord: 3.0ms)
+--------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency
+--------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.1ms)
- [1m[36m (1.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'carolina@gusikowski.net' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["crypted_password", nil], ["email", "carolina@gusikowski.net"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:33:45 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36mInvoiceBar::Contact Load (0.1ms)[0m [1mSELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
- [1m[35m (1.6ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'kavon@smith.com' LIMIT 1[0m
- [1m[35mSQL (6.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["crypted_password", nil], ["email", "kavon@smith.com"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.1ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 170ms (ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
- [1m[36m (2.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jolie@kertzmann.net' LIMIT 1
- [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["crypted_password", nil], ["email", "jolie@kertzmann.net"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
-Processing by InvoiceBar::ContactsController#destroy as HTML
+Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.3ms)
+----------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_get_index
+----------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#index as JSON
+Completed 200 OK in 8ms (Views: 3.0ms | ActiveRecord: 0.7ms)
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#update as JSON
+ Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"}
+Completed 200 OK in 16ms (Views: 1.5ms | ActiveRecord: 2.0ms)
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_show_user
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Address Load (0.2ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ?[0m [["id", 1]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 42ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'eldora.feeney@barrows.biz' LIMIT 1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["crypted_password", nil], ["email", "eldora.feeney@barrows.biz"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#edit as HTML
+Completed 200 OK in 6ms (Views: 1.2ms | ActiveRecord: 0.7ms)
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_create_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#create as JSON
+ Parameters: {"user"=>{"name"=>"Name 18", "email"=>"andy@bahringer.biz", "ic"=>1878974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
+Unpermitted parameter: ic
+Completed 422 Unprocessable Entity in 17ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+--------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_destroy_user
+--------------------------------------------------------------
+Processing by InvoiceBar::UsersController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- [1m[36mInvoiceBar::Address Load (0.2ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 68ms (Views: 65.8ms | ActiveRecord: 0.2ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'luciano@kotoy.name' LIMIT 1[0m
- [1m[35mSQL (1.0ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["crypted_password", nil], ["email", "luciano@kotoy.name"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#index as HTML
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" LIMIT 25 OFFSET 0
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.2ms)
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'rhiannon_gerhold@bogan.name' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["crypted_password", nil], ["email", "rhiannon_gerhold@bogan.name"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#new as HTML
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (54.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (60.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 66ms (Views: 64.5ms | ActiveRecord: 0.1ms)
- [1m[35m (1.3ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'ophelia@effertz.info' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["crypted_password", nil], ["email", "ophelia@effertz.info"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#show as HTML
+Completed 200 OK in 29ms (ActiveRecord: 5.0ms)
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_get_index
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#index as JSON
+Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 1.9ms)
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_update_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#update as JSON
+ Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "ic"=>2178974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"}
+Unpermitted parameter: ic
+Completed 422 Unprocessable Entity in 25ms (Views: 0.4ms | ActiveRecord: 2.0ms)
+-------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.1ms)
- [1m[36m (1.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'vickie.streich@lakincollier.org' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["crypted_password", nil], ["email", "vickie.streich@lakincollier.org"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:38:28 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36mInvoiceBar::Contact Load (0.1ms)[0m [1mSELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
- [1m[35m (1.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'sophia.orn@green.info' LIMIT 1[0m
- [1m[35mSQL (6.4ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:39:55 UTC +00:00], ["crypted_password", nil], ["email", "sophia.orn@green.info"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:39:55 UTC +00:00], ["web", nil]]
- [1m[36mSQL (9.8ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:39:55 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:39:55 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["currency_id", 2], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (2.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'devyn@prohaska.net' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["crypted_password", nil], ["email", "devyn@prohaska.net"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.2ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'pat@nolan.name' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["crypted_password", nil], ["email", "pat@nolan.name"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::AccountsController#edit as HTML
+Completed 200 OK in 7ms (ActiveRecord: 0.8ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#update as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 26ms (Views: 3.4ms | ActiveRecord: 2.7ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#create as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
+Completed 201 Created in 25ms (Views: 1.6ms | ActiveRecord: 3.1ms)
+----------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#index as JSON
+Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.4ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#show as JSON
Parameters: {"id"=>"1"}
- [1m[36mInvoiceBar::Account Load (0.2ms)[0m [1mSELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1[0m [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.9ms)
- [1m[35mInvoiceBar::Currency Load (0.3ms)[0m SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" ORDER BY priority DESC
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (15.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 190ms (Views: 187.3ms | ActiveRecord: 0.5ms)
- [1m[36m (1.7ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'chanelle.rowe@walter.info' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["crypted_password", nil], ["email", "chanelle.rowe@walter.info"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00]]
- [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::AccountsController#index as HTML
- [1m[36mInvoiceBar::Account Load (0.1ms)[0m [1mSELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" [0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.1ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'seamus@renner.net' LIMIT 1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["crypted_password", nil], ["email", "seamus@renner.net"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::AccountsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- [1m[35mInvoiceBar::Currency Load (0.2ms)[0m SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" ORDER BY priority DESC
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (4.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.2ms)
- [1m[36m (1.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'lois@armstrong.com' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["crypted_password", nil], ["email", "lois@armstrong.com"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::AccountsController#show as HTML
+Completed 200 OK in 11ms (Views: 4.4ms | ActiveRecord: 0.3ms)
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice
+-------------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#create as JSON
+ Parameters: {"invoice"=>{"number"=>"201001128", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}}
+Completed 422 Unprocessable Entity in 22ms (Views: 0.2ms | ActiveRecord: 2.2ms)
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice
+-------------------------------------------------------------------
+--------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#index as JSON
+Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)
+--------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice
+--------------------------------------------------------------------
+-----------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice
+-----------------------------------------------------------------
+-----------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_show_account
+-----------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#show as JSON
Parameters: {"id"=>"1"}
- [1m[36mInvoiceBar::Account Load (0.1ms)[0m [1mSELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1[0m [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.1ms)
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'horacio@sauer.org' LIMIT 1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["crypted_password", nil], ["email", "horacio@sauer.org"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:39:56 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::AccountsController#update as HTML
- Parameters: {"id"=>"1", "account"=>{"name"=>"Name 19", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}}
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mInvoiceBar::Account Load (0.1ms)[0m [1mSELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 54ms (ActiveRecord: 0.0ms)
- [1m[36m (1.3ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'kimberly_stamm@lynch.name' LIMIT 1[0m
- [1m[35mSQL (6.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["crypted_password", nil], ["email", "kimberly_stamm@lynch.name"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["web", nil]]
- [1m[36mSQL (6.9ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["currency_id", 2], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" [0m
-Processing by InvoiceBar::AccountsController#create as HTML
- Parameters: {"account"=>{"name"=>"Name 09", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"2", "user_id"=>"1"}}
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.7ms)
- [1m[35mInvoiceBar::Currency Load (0.2ms)[0m SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" ORDER BY priority DESC
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (10.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/new.html.erb within invoice_bar/layouts/signed_in (52.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 195ms (Views: 62.9ms | ActiveRecord: 0.2ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" [0m
- [1m[35m (2.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'margret@moendaniel.org' LIMIT 1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["crypted_password", nil], ["email", "margret@moendaniel.org"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts"
-Processing by InvoiceBar::AccountsController#destroy as HTML
+Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)
+--------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#index as JSON
+Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.2ms)
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_update_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#update as JSON
+ Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 10ms (Views: 1.2ms | ActiveRecord: 1.1ms)
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_create_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#create as JSON
+ Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}}
+Completed 201 Created in 19ms (Views: 1.0ms | ActiveRecord: 2.4ms)
+--------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_destroy_account
+--------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[36mInvoiceBar::Account Load (0.2ms)[0m [1mSELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ?[0m [["id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" [0m
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'braulio@purdy.name' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["crypted_password", nil], ["email", "braulio@purdy.name"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::AccountsController#edit as HTML
+Completed 200 OK in 5ms (ActiveRecord: 0.4ms)
+--------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact
+--------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms)
- [1m[36mInvoiceBar::Currency Load (0.3ms)[0m [1mSELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" ORDER BY priority DESC[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (4.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.4ms)
- [1m[35m (1.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'zula.kuhn@kris.net' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["crypted_password", nil], ["email", "zula.kuhn@kris.net"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::AccountsController#index as HTML
- [1m[35mInvoiceBar::Account Load (0.2ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts"
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.2ms)
- [1m[36m (1.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'bridgette_schmidt@murray.org' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["crypted_password", nil], ["email", "bridgette_schmidt@murray.org"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:40:51 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::AccountsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- [1m[36mInvoiceBar::Currency Load (0.3ms)[0m [1mSELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" ORDER BY priority DESC[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (57.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 61ms (Views: 59.5ms | ActiveRecord: 0.3ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'cristina@schowalterbecker.org' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:40:52 UTC +00:00], ["crypted_password", nil], ["email", "cristina@schowalterbecker.org"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:40:52 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:40:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:40:52 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:40:52 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:40:52 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::AccountsController#show as HTML
+Completed 200 OK in 13ms (ActiveRecord: 2.0ms)
+--------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#index as JSON
+Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 0.7ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_create_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#create as JSON
+ Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}}
+Completed 201 Created in 7ms (Views: 1.3ms | ActiveRecord: 0.5ms)
+-----------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_show_contact
+-----------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.1ms)
- [1m[36m (1.2ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'valentina_lindgren@watersgorczany.info' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:40:52 UTC +00:00], ["crypted_password", nil], ["email", "valentina_lindgren@watersgorczany.info"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:40:52 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:40:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:40:52 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:40:52 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:40:52 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::AccountsController#update as HTML
- Parameters: {"id"=>"1", "account"=>{"name"=>"Name 19", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}}
- [1m[36mInvoiceBar::Account Load (0.2ms)[0m [1mSELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 13ms (ActiveRecord: 0.0ms)
- [1m[35m (1.1ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'levi@beahansawayn.com' LIMIT 1[0m
- [1m[35mSQL (6.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["crypted_password", nil], ["email", "levi@beahansawayn.com"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["currency_id", 2], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" [0m
-Processing by InvoiceBar::AccountsController#create as HTML
- Parameters: {"account"=>{"name"=>"Name 09", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"2", "user_id"=>"1"}}
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.8ms)
- [1m[35mInvoiceBar::Currency Load (0.2ms)[0m SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" ORDER BY priority DESC
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (10.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/new.html.erb within invoice_bar/layouts/signed_in (53.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 203ms (Views: 63.3ms | ActiveRecord: 0.2ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" [0m
- [1m[35m (2.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'waino.torp@conroymcclure.name' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["crypted_password", nil], ["email", "waino.torp@conroymcclure.name"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts"
-Processing by InvoiceBar::AccountsController#destroy as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_update_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#update as JSON
+ Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 9ms (Views: 3.5ms | ActiveRecord: 0.4ms)
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+--------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#index as JSON
+Completed 200 OK in 12ms (Views: 2.2ms | ActiveRecord: 0.2ms)
+-----------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_show_contact
+-----------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#show as JSON
Parameters: {"id"=>"1"}
- [1m[36mInvoiceBar::Account Load (0.2ms)[0m [1mSELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ?[0m [["id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" [0m
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'tracey@dietrichkeebler.com' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["crypted_password", nil], ["email", "tracey@dietrichkeebler.com"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::AccountsController#edit as HTML
+Completed 200 OK in 12ms (Views: 3.2ms | ActiveRecord: 0.4ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_update_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#update as JSON
+ Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 13ms (Views: 1.3ms | ActiveRecord: 0.9ms)
+--------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact
+--------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- [1m[36mInvoiceBar::Currency Load (0.2ms)[0m [1mSELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" ORDER BY priority DESC[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (4.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.3ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'giovanni.hickle@rowe.biz' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["crypted_password", nil], ["email", "giovanni.hickle@rowe.biz"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::AccountsController#index as HTML
- [1m[35mInvoiceBar::Account Load (0.2ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts"
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.2ms)
- [1m[36m (1.2ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'madisen.denesik@bode.org' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["crypted_password", nil], ["email", "madisen.denesik@bode.org"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::AccountsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- [1m[36mInvoiceBar::Currency Load (0.2ms)[0m [1mSELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" ORDER BY priority DESC[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (4.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.2ms)
- [1m[35m (1.3ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'rylan_borer@schulist.net' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["crypted_password", nil], ["email", "rylan_borer@schulist.net"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::AccountsController#show as HTML
+Completed 200 OK in 5ms (ActiveRecord: 0.8ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_create_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#create as JSON
+ Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}}
+Completed 201 Created in 22ms (Views: 0.8ms | ActiveRecord: 2.4ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#update as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 34ms (Views: 3.1ms | ActiveRecord: 3.5ms)
+-------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.1ms)
- [1m[36m (1.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'daron@gloverzieme.biz' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["crypted_password", nil], ["email", "daron@gloverzieme.biz"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:45:05 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::AccountsController#update as HTML
- Parameters: {"id"=>"1", "account"=>{"name"=>"Name 09", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}}
- [1m[36mInvoiceBar::Account Load (0.1ms)[0m [1mSELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
- [1m[35m (1.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'afton@roberts.org' LIMIT 1[0m
- [1m[35mSQL (6.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:00 UTC +00:00], ["crypted_password", nil], ["email", "afton@roberts.org"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:00 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:00 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:47:00 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:47:00 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["currency_id", 2], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" [0m
-Processing by InvoiceBar::AccountsController#create as HTML
- Parameters: {"account"=>{"name"=>"Name 19", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"2", "user_id"=>"1"}}
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.8ms)
- [1m[35mInvoiceBar::Currency Load (0.2ms)[0m SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" ORDER BY priority DESC
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (11.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/new.html.erb within invoice_bar/layouts/signed_in (55.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 196ms (Views: 65.2ms | ActiveRecord: 0.2ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" [0m
- [1m[35m (1.9ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jasmin_olson@ebert.info' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["crypted_password", nil], ["email", "jasmin_olson@ebert.info"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts"
-Processing by InvoiceBar::AccountsController#destroy as HTML
+Completed 200 OK in 24ms (ActiveRecord: 2.2ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#create as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
+Completed 201 Created in 30ms (Views: 1.3ms | ActiveRecord: 2.6ms)
+----------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#index as JSON
+Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#show as JSON
Parameters: {"id"=>"1"}
- [1m[36mInvoiceBar::Account Load (0.2ms)[0m [1mSELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ?[0m [["id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" [0m
- [1m[35m (1.3ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'maurice_heller@fadel.com' LIMIT 1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["crypted_password", nil], ["email", "maurice_heller@fadel.com"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::AccountsController#edit as HTML
+Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.1ms)
+--------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice
+--------------------------------------------------------------------
+--------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#index as JSON
+Completed 200 OK in 13ms (Views: 2.9ms | ActiveRecord: 0.8ms)
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice
+-------------------------------------------------------------------
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice
+-------------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#create as JSON
+ Parameters: {"invoice"=>{"number"=>"201001125", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}}
+Completed 422 Unprocessable Entity in 29ms (Views: 0.3ms | ActiveRecord: 2.1ms)
+-----------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice
+-----------------------------------------------------------------
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_update_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#update as JSON
+ Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 18ms (Views: 1.4ms | ActiveRecord: 2.1ms)
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_create_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#create as JSON
+ Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}}
+Completed 201 Created in 23ms (Views: 0.8ms | ActiveRecord: 2.9ms)
+--------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#index as JSON
+Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 1.4ms)
+-----------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_show_account
+-----------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- [1m[36mInvoiceBar::Currency Load (0.2ms)[0m [1mSELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" ORDER BY priority DESC[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (4.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.3ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'keyshawn.berge@klocko.name' LIMIT 1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["crypted_password", nil], ["email", "keyshawn.berge@klocko.name"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::AccountsController#index as HTML
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts"
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms)
- [1m[36m (1.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.3ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'kraig@white.org' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["crypted_password", nil], ["email", "kraig@white.org"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::AccountsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- [1m[36mInvoiceBar::Currency Load (0.3ms)[0m [1mSELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" ORDER BY priority DESC[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (54.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 58ms (Views: 57.1ms | ActiveRecord: 0.3ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'nicklaus.will@mohrweber.com' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["crypted_password", nil], ["email", "nicklaus.will@mohrweber.com"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::AccountsController#show as HTML
+Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)
+--------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_destroy_account
+--------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.1ms)
- [1m[36m (1.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'max@daniel.com' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["crypted_password", nil], ["email", "max@daniel.com"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:47:01 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::AccountsController#update as HTML
- Parameters: {"id"=>"1", "account"=>{"name"=>"Name 19", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}}
- [1m[36mInvoiceBar::Account Load (0.1ms)[0m [1mSELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
- [1m[35m (1.1ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'israel.lebsack@wolfprohaska.biz' LIMIT 1[0m
- [1m[35mSQL (7.0ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:19 UTC +00:00], ["crypted_password", nil], ["email", "israel.lebsack@wolfprohaska.biz"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:19 UTC +00:00], ["web", nil]]
- [1m[36mSQL (6.9ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:19 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:19 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:47:19 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:47:19 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:47:19 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:47:19 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 168ms (ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
- [1m[36m (2.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'orpha@cain.biz' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:19 UTC +00:00], ["crypted_password", nil], ["email", "orpha@cain.biz"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:19 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:19 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:19 UTC +00:00]]
- [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:47:19 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:47:19 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
-Processing by InvoiceBar::ContactsController#destroy as HTML
+Completed 200 OK in 12ms (ActiveRecord: 2.1ms)
+----------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#index as JSON
+Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.3ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#update as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 30ms (Views: 3.2ms | ActiveRecord: 2.2ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#create as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}}
+Completed 201 Created in 28ms (Views: 0.9ms | ActiveRecord: 1.9ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Address Load (0.2ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ?[0m [["id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 32ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'felix_crist@moen.org' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["crypted_password", nil], ["email", "felix_crist@moen.org"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#edit as HTML
+Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 1.2ms)
+-------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- [1m[36mInvoiceBar::Address Load (0.2ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (11.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 80ms (Views: 78.1ms | ActiveRecord: 0.3ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'lemuel@sawayn.info' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["crypted_password", nil], ["email", "lemuel@sawayn.info"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#index as HTML
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" LIMIT 25 OFFSET 0
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.2ms)
- [1m[35m (1.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'braeden_cormier@abshire.name' LIMIT 1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["crypted_password", nil], ["email", "braeden_cormier@abshire.name"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#new as HTML
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (54.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (62.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 69ms (Views: 66.6ms | ActiveRecord: 0.1ms)
- [1m[35m (1.3ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'thelma@feil.net' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["crypted_password", nil], ["email", "thelma@feil.net"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#show as HTML
+Completed 200 OK in 12ms (ActiveRecord: 1.5ms)
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#create as JSON
+ Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}}
+Completed 201 Created in 7ms (Views: 1.5ms | ActiveRecord: 0.7ms)
+----------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_get_index
+----------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#index as JSON
+Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
+--------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency
+--------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#show as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.1ms)
- [1m[36m (1.2ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'aleen@jewe.com' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["crypted_password", nil], ["email", "aleen@jewe.com"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Tue, 11 Dec 2012 21:47:20 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36mInvoiceBar::Contact Load (0.1ms)[0m [1mSELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
- [1m[35m (1.2ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'ole_wilkinson@steuber.info' LIMIT 1[0m
- [1m[35mSQL (6.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["crypted_password", nil], ["email", "ole_wilkinson@steuber.info"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001121 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["due_date", Tue, 25 Dec 2012], ["issue_date", Tue, 11 Dec 2012], ["number", 201001121], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00]]
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices"
- [1m[36m (2.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'narciso@beatty.name' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["crypted_password", nil], ["email", "narciso@beatty.name"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001123 AND "invoice_bar_invoices"."user_id" = 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["due_date", Tue, 25 Dec 2012], ["issue_date", Tue, 11 Dec 2012], ["number", 201001123], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["user_id", 1]]
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00]]
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 1000], ["created_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Tue, 11 Dec 2012 21:47:42 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" [0m
-Processing by InvoiceBar::InvoicesController#destroy as HTML
+Completed 200 OK in 6ms (Views: 0.7ms | ActiveRecord: 0.4ms)
+-----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency
+-----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Invoice Load (0.2ms)[0m SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Address Load (0.2ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Invoice' LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ?[0m [["id", 2]]
- [1m[35mInvoiceBar::Item Load (0.1ms)[0m SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = 1 AND "invoice_bar_items"."itemable_type" = 'InvoiceBar::Invoice'
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "invoice_bar_items" WHERE "invoice_bar_items"."id" = ?[0m [["id", 1]]
- [1m[35mSQL (0.2ms)[0m DELETE FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."id" = ? [["id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 233ms (ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices"
- [1m[36m (2.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'bo@anderson.name' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["crypted_password", nil], ["email", "bo@anderson.name"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001124 AND "invoice_bar_invoices"."user_id" = 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["due_date", Tue, 25 Dec 2012], ["issue_date", Tue, 11 Dec 2012], ["number", 201001124], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["user_id", 1]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 1000], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::InvoicesController#edit as HTML
+Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#update as JSON
+ Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"}
+Completed 200 OK in 21ms (Views: 5.2ms | ActiveRecord: 1.6ms)
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_get_index
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#index as JSON
+Completed 200 OK in 11ms (Views: 3.5ms | ActiveRecord: 0.6ms)
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_create_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#create as JSON
+ Parameters: {"user"=>{"name"=>"Name 33", "email"=>"lew_cormier@weinat.biz", "ic"=>3378974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
+Unpermitted parameter: ic
+Completed 422 Unprocessable Entity in 29ms (Views: 0.6ms | ActiveRecord: 2.8ms)
+--------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_destroy_user
+--------------------------------------------------------------
+Processing by InvoiceBar::UsersController#destroy as JSON
Parameters: {"id"=>"1"}
- [1m[36mInvoiceBar::Invoice Load (0.1ms)[0m [1mSELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."id" = ? LIMIT 1[0m [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.9ms)
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = 1
- [1m[36mInvoiceBar::InvoiceTemplate Load (0.1ms)[0m [1mSELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.6ms)
- [1m[35mInvoiceBar::Address Load (0.2ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Invoice' LIMIT 1
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (3.9ms)
- [1m[36mInvoiceBar::Account Load (0.2ms)[0m [1mSELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.0ms)
- [1m[35mInvoiceBar::Item Load (0.2ms)[0m SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = 1 AND "invoice_bar_items"."itemable_type" = 'InvoiceBar::Invoice'
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (84.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 161ms (Views: 157.4ms | ActiveRecord: 1.6ms)
- [1m[36m (1.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'mercedes@gerhold.org' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["crypted_password", nil], ["email", "mercedes@gerhold.org"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001125 AND "invoice_bar_invoices"."user_id" = 1
- [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["due_date", Tue, 25 Dec 2012], ["issue_date", Tue, 11 Dec 2012], ["number", 201001125], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["user_id", 1]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 1000], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::InvoicesController#index as HTML
- [1m[36mInvoiceBar::Invoice Load (0.2ms)[0m [1mSELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" LIMIT 25 OFFSET 0[0m
-Completed 500 Internal Server Error in 11ms
- [1m[35m (1.6ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'mateo@heidenreich.org' LIMIT 1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["crypted_password", nil], ["email", "mateo@heidenreich.org"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001126 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["due_date", Tue, 25 Dec 2012], ["issue_date", Tue, 11 Dec 2012], ["number", 201001126], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00]]
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::InvoicesController#new as HTML
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- [1m[35mInvoiceBar::Contact Load (0.2ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = 1
- [1m[36mInvoiceBar::InvoiceTemplate Load (0.2ms)[0m [1mSELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms)
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = 1
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (14.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 24ms (Views: 20.0ms | ActiveRecord: 0.6ms)
- [1m[36m (1.7ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'zoie.moore@klein.name' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["crypted_password", nil], ["email", "zoie.moore@klein.name"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001127 AND "invoice_bar_invoices"."user_id" = 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["due_date", Tue, 25 Dec 2012], ["issue_date", Tue, 11 Dec 2012], ["number", 201001127], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["user_id", 1]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 1000], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::InvoicesController#show as HTML
+Completed 200 OK in 32ms (ActiveRecord: 5.4ms)
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_show_user
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#show as JSON
Parameters: {"id"=>"1"}
- [1m[36mInvoiceBar::Invoice Load (0.2ms)[0m [1mSELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = 1 AND "invoice_bar_invoices"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35mInvoiceBar::Address Load (0.1ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Invoice' LIMIT 1
- [1m[36mInvoiceBar::Account Load (0.1ms)[0m [1mSELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = 1 AND "invoice_bar_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
- [1m[35mInvoiceBar::User Load (0.2ms)[0m SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = 1 LIMIT 1
- [1m[36mInvoiceBar::Address Load (0.1ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::User' LIMIT 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/invoices/_address.html.erb (23.6ms)
-Completed 500 Internal Server Error in 40ms
- [1m[35m (1.6ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'edd@kelerabernathy.name' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["crypted_password", nil], ["email", "edd@kelerabernathy.name"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001128 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["due_date", Tue, 25 Dec 2012], ["issue_date", Tue, 11 Dec 2012], ["number", 201001128], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00]]
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Tue, 11 Dec 2012 21:47:43 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.8ms)[0m rollback transaction
-Connecting to database specified by database.yml
-Processing by InvoiceBar::AccountsController#create as HTML
- Parameters: {"account"=>{"name"=>"Name 09", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"2", "user_id"=>"1"}}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (12.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/new.html.erb within invoice_bar/layouts/signed_in (53.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.7ms)
-Completed 200 OK in 198ms (Views: 67.4ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::AccountsController#destroy as HTML
+Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_update_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#update as JSON
+ Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "ic"=>3678974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"}
+Unpermitted parameter: ic
+Completed 422 Unprocessable Entity in 32ms (Views: 0.6ms | ActiveRecord: 2.4ms)
+-----------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt
+-----------------------------------------------------------------
+--------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt
+--------------------------------------------------------------------
+--------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#index as JSON
+Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt
+-------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#create as JSON
+ Parameters: {"receipt"=>{"number"=>"2010011211", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}}
+Completed 422 Unprocessable Entity in 25ms (Views: 0.6ms | ActiveRecord: 1.4ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt
+-------------------------------------------------------------------
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+------------------------------------------------------
+InvoiceBar::UsersControllerTest: test_should_show_user
+------------------------------------------------------
+Processing by InvoiceBar::UsersController#show as HTML
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#edit as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/show.html.erb within invoice_bar/layouts/signed_out (1.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (5918.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (4.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
+Completed 200 OK in 6038ms (Views: 6007.0ms | ActiveRecord: 0.2ms)
+----------------------------------------------------
+InvoiceBar::UsersControllerTest: test_should_get_new
+----------------------------------------------------
+Processing by InvoiceBar::UsersController#new as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (10.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/_form.html.erb (80.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/new.html.erb within invoice_bar/layouts/signed_out (81.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms)
+Completed 200 OK in 92ms (Views: 88.3ms | ActiveRecord: 0.0ms)
+--------------------------------------------------------
+InvoiceBar::UsersControllerTest: test_should_create_user
+--------------------------------------------------------
+Processing by InvoiceBar::UsersController#create as HTML
+ Parameters: {"user"=>{"name"=>"Name 4", "email"=>"carson@feeney.com", "ic"=>"478974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
+Unpermitted parameter: ic
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/_form.html.erb (4.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/new.html.erb within invoice_bar/layouts/signed_out (4.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (7.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.4ms)
+Completed 200 OK in 24ms (Views: 17.0ms | ActiveRecord: 0.4ms)
+---------------------------------------------------------
+InvoiceBar::UsersControllerTest: test_should_destroy_user
+---------------------------------------------------------
+Processing by InvoiceBar::UsersController#destroy as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (4.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::AccountsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::AccountsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (6.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::AccountsController#show as HTML
+Redirected to http://test.host/invoice_bar/users/1
+Completed 302 Found in 54ms (ActiveRecord: 5.8ms)
+------------------------------------------------------
+InvoiceBar::UsersControllerTest: test_should_get_index
+------------------------------------------------------
+Processing by InvoiceBar::UsersController#index as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/index.html.erb within invoice_bar/layouts/signed_in (41.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 53ms (Views: 50.4ms | ActiveRecord: 1.6ms)
+--------------------------------------------------------
+InvoiceBar::UsersControllerTest: test_should_update_user
+--------------------------------------------------------
+Processing by InvoiceBar::UsersController#update as HTML
+ Parameters: {"user"=>{"name"=>"Name 7", "email"=>"gideon@zieme.co", "ic"=>"778974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"}
+Unpermitted parameter: ic
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (3.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/settings/index.html.erb within invoice_bar/layouts/signed_in (15.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 43ms (Views: 22.4ms | ActiveRecord: 1.0ms)
+----------------------------------------------------------------
+InvoiceBar::InvoiceTemplatesControllerTest: test_should_get_edit
+----------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#edit as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::AccountsController#update as HTML
- Parameters: {"id"=>"1", "account"=>{"name"=>"Name 19", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
-Connecting to database specified by database.yml
-Processing by InvoiceBar::AccountsController#create as HTML
- Parameters: {"account"=>{"name"=>"Name 09", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"2", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 136ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#destroy as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (7.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (17.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (7.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (67.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/edit.html.erb within invoice_bar/layouts/signed_in (69.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
+Completed 200 OK in 93ms (Views: 77.7ms | ActiveRecord: 1.6ms)
+-----------------------------------------------------------------------------
+InvoiceBar::InvoiceTemplatesControllerTest: test_should_show_invoice_template
+-----------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#show as HTML
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#edit as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (14.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/show.html.erb within invoice_bar/layouts/signed_in (16.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (4.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 29ms (Views: 24.7ms | ActiveRecord: 1.8ms)
+--------------------------------------------------------------------------------
+InvoiceBar::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template
+--------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#destroy as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (7.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 65ms (Views: 62.7ms | ActiveRecord: 0.3ms)
+Redirected to http://test.host/invoice_bar/invoice_templates
+Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
+---------------------------------------------------------------
+InvoiceBar::InvoiceTemplatesControllerTest: test_should_get_new
+---------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#new as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (7.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (21.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/new.html.erb within invoice_bar/layouts/signed_in (21.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 34ms (Views: 25.6ms | ActiveRecord: 0.4ms)
+-----------------------------------------------------------------
+InvoiceBar::InvoiceTemplatesControllerTest: test_should_get_index
+-----------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#index as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/index.html.erb within invoice_bar/layouts/signed_in (14.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (4.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 1.3ms)
+-------------------------------------------------------------------------------
+InvoiceBar::InvoiceTemplatesControllerTest: test_should_create_invoice_template
+-------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#create as HTML
+ Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>nil, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}}
+Redirected to http://test.host/invoice_bar/invoice_templates/2
+Completed 302 Found in 24ms (ActiveRecord: 1.9ms)
+-------------------------------------------------------------------------------
+InvoiceBar::InvoiceTemplatesControllerTest: test_should_update_invoice_template
+-------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#update as HTML
+ Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>"0", "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Name 7", "payment_identification_number"=>nil, "user_id"=>"1"}, "id"=>"1"}
+Redirected to http://test.host/invoice_bar/invoice_templates/1
+Completed 302 Found in 27ms (ActiveRecord: 2.2ms)
+-------------------------------------------------------
+InvoiceBar::ReceiptsControllerTest: test_should_get_new
+-------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#new as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (3.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (33.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/new.html.erb within invoice_bar/layouts/signed_in (34.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 63ms (Views: 44.9ms | ActiveRecord: 2.4ms)
+------------------------------------------------------------
+InvoiceBar::ReceiptsControllerTest: test_should_show_receipt
+------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#show as HTML
+ Parameters: {"number"=>"201001122"}
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (5.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (26.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/show.html.erb within invoice_bar/layouts/signed_in (27.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 38ms (Views: 30.6ms | ActiveRecord: 1.5ms)
+--------------------------------------------------------------
+InvoiceBar::ReceiptsControllerTest: test_should_create_receipt
+--------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#create as HTML
+ Parameters: {"receipt"=>{"number"=>"201001124", "amount"=>"1000000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "issue_date"=>"2016-07-08", "account_id"=>"1", "user_id"=>"1", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
+Redirected to http://test.host/invoice_bar/receipts/2
+Completed 302 Found in 45ms (ActiveRecord: 3.9ms)
+---------------------------------------------------------------
+InvoiceBar::ReceiptsControllerTest: test_should_destroy_receipt
+---------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#destroy as HTML
+ Parameters: {"number"=>"201001125"}
+Redirected to http://test.host/invoice_bar/receipts/201001125
+Completed 302 Found in 24ms (ActiveRecord: 2.5ms)
+--------------------------------------------------------------
+InvoiceBar::ReceiptsControllerTest: test_should_update_receipt
+--------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#update as HTML
+ Parameters: {"receipt"=>{"number"=>"201001126", "amount"=>"1000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "issue_date"=>"2016-07-08", "account_id"=>"1", "user_id"=>"1"}, "number"=>"201001126"}
+Redirected to http://test.host/invoice_bar/receipts/1
+Completed 302 Found in 25ms (ActiveRecord: 1.4ms)
+--------------------------------------------------------
+InvoiceBar::ReceiptsControllerTest: test_should_get_edit
+--------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#edit as HTML
+ Parameters: {"number"=>"201001127"}
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (4.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (5.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (32.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/edit.html.erb within invoice_bar/layouts/signed_in (34.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms)
+Completed 200 OK in 55ms (Views: 47.6ms | ActiveRecord: 1.1ms)
+---------------------------------------------------------
+InvoiceBar::ReceiptsControllerTest: test_should_get_index
+---------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#index as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (2.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/index.html.erb within invoice_bar/layouts/signed_in (22.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 33ms (Views: 28.8ms | ActiveRecord: 0.9ms)
+---------------------------------------------------------
+InvoiceBar::AccountsControllerTest: test_should_get_index
+---------------------------------------------------------
Processing by InvoiceBar::AccountsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::AccountsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (6.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 67ms (Views: 65.1ms | ActiveRecord: 0.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/index.html.erb within invoice_bar/layouts/signed_in (8.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 22ms (Views: 17.4ms | ActiveRecord: 0.2ms)
+------------------------------------------------------------
+InvoiceBar::AccountsControllerTest: test_should_show_account
+------------------------------------------------------------
Processing by InvoiceBar::AccountsController#show as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::AccountsController#update as HTML
- Parameters: {"id"=>"1", "account"=>{"name"=>"Name 19", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
-Connecting to database specified by database.yml
-Processing by InvoiceBar::AccountsController#create as HTML
- Parameters: {"account"=>{"name"=>"Name 09", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"2", "user_id"=>"1"}}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (10.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/new.html.erb within invoice_bar/layouts/signed_in (53.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 191ms (Views: 63.7ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::AccountsController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (4.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::AccountsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/show.html.erb within invoice_bar/layouts/signed_in (3.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 14ms (Views: 9.6ms | ActiveRecord: 0.3ms)
+-------------------------------------------------------
+InvoiceBar::AccountsControllerTest: test_should_get_new
+-------------------------------------------------------
Processing by InvoiceBar::AccountsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (4.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::AccountsController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::AccountsController#update as HTML
- Parameters: {"id"=>"1", "account"=>{"name"=>"Name 19", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
-Connecting to database specified by database.yml
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (6.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/new.html.erb within invoice_bar/layouts/signed_in (9.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 0.4ms)
+--------------------------------------------------------------
+InvoiceBar::AccountsControllerTest: test_should_create_account
+--------------------------------------------------------------
Processing by InvoiceBar::AccountsController#create as HTML
Parameters: {"account"=>{"name"=>"Account", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"2", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 145ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
+Redirected to http://test.host/invoice_bar/accounts/2
+Completed 302 Found in 30ms (ActiveRecord: 3.1ms)
+--------------------------------------------------------------
+InvoiceBar::AccountsControllerTest: test_should_update_account
+--------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#update as HTML
+ Parameters: {"account"=>{"name"=>"Name 19", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}, "id"=>"1"}
+Redirected to http://test.host/invoice_bar/accounts/1
+Completed 302 Found in 13ms (ActiveRecord: 1.5ms)
+--------------------------------------------------------
+InvoiceBar::AccountsControllerTest: test_should_get_edit
+--------------------------------------------------------
Processing by InvoiceBar::AccountsController#edit as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (8.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 70ms (Views: 67.5ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::AccountsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::AccountsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (5.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::AccountsController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::AccountsController#update as HTML
- Parameters: {"id"=>"1", "account"=>{"name"=>"Name 09", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'tillman.runolfsdottir@beatty.com' LIMIT 1[0m
- [1m[35mSQL (1.0ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["crypted_password", nil], ["email", "tillman.runolfsdottir@beatty.com"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["web", nil]]
- [1m[36mSQL (27.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00]]
- [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'isidro_keebler@haag.info' LIMIT 1
- [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["crypted_password", nil], ["email", "isidro_keebler@haag.info"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 2
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["user_id", 2]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'humberto_sawayn@hagenes.biz' LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["crypted_password", nil], ["email", "humberto_sawayn@hagenes.biz"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 3], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'zoila.zboncak@friesen.org' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["crypted_password", nil], ["email", "zoila.zboncak@friesen.org"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 4], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 4[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["currency_id", 2], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["user_id", 4]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'euna_pacocha@green.name' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["crypted_password", nil], ["email", "euna_pacocha@green.name"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 5], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'waino.maggio@keeling.info' LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["crypted_password", nil], ["email", "waino.maggio@keeling.info"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 6], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 6
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["currency_id", 3], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["user_id", 6]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.8ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'francesca@effertz.biz' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["crypted_password", nil], ["email", "francesca@effertz.biz"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'carrie_west@romagueragleason.name' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["crypted_password", nil], ["email", "carrie_west@romagueragleason.name"], ["ic", 878974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 2[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["user_id", 2]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 2 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["due_date", Tue, 25 Dec 2012], ["issue_date", Tue, 11 Dec 2012], ["number", 2], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00]]
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'sunny_herman@bahringer.com' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["crypted_password", nil], ["email", "sunny_herman@bahringer.com"], ["ic", 978974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 3], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 3[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["currency_id", 2], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["user_id", 3]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 2 AND "invoice_bar_invoices"."user_id" = 1
- [1m[36mInvoiceBar::Invoice Load (0.1ms)[0m [1mSELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 2 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'john@streich.org' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["crypted_password", nil], ["email", "john@streich.org"], ["ic", 1078974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 4], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 4[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["currency_id", 3], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 22:16:04 UTC +00:00], ["user_id", 4]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001123 AND "invoice_bar_invoices"."user_id" = 1
- [1m[36m (1.5ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'nathanial.dibbert@keler.com' LIMIT 1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:27 UTC +00:00], ["crypted_password", nil], ["email", "nathanial.dibbert@keler.com"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:27 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:27 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:27 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'matilda_cummerata@collinsabbott.net' LIMIT 1
- [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:27 UTC +00:00], ["crypted_password", nil], ["email", "matilda_cummerata@collinsabbott.net"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:27 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:27 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:27 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 2
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 22:16:27 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 22:16:27 UTC +00:00], ["user_id", 2]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jasmin@abshireschneider.org' LIMIT 1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["crypted_password", nil], ["email", "jasmin@abshireschneider.org"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 3], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'eric@stark.com' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["crypted_password", nil], ["email", "eric@stark.com"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 4], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 4[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["currency_id", 2], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["user_id", 4]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'mohammed@hauck.org' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["crypted_password", nil], ["email", "mohammed@hauck.org"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 5], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'andreanne@jones.name' LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["crypted_password", nil], ["email", "andreanne@jones.name"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 6], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 6
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["currency_id", 3], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["user_id", 6]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.9ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'wallace@kulas.biz' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["crypted_password", nil], ["email", "wallace@kulas.biz"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'glenda_nitzsche@wiegand.com' LIMIT 1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["crypted_password", nil], ["email", "glenda_nitzsche@wiegand.com"], ["ic", 878974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 2[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["user_id", 2]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001123 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35mSQL (1.1ms)[0m INSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["due_date", Tue, 25 Dec 2012], ["issue_date", Tue, 11 Dec 2012], ["number", 201001123], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (58.3ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'alfredo@hageneatterfield.net' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["crypted_password", nil], ["email", "alfredo@hageneatterfield.net"], ["ic", 978974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'trevor_gulgowski@strosindickens.info' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["crypted_password", nil], ["email", "trevor_gulgowski@strosindickens.info"], ["ic", 1078974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 2
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["user_id", 2]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001124 AND "invoice_bar_invoices"."user_id" = 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["due_date", Tue, 25 Dec 2012], ["issue_date", Tue, 11 Dec 2012], ["number", 201001124], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["user_id", 1]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 1000], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (17.4ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'santos@goldner.info' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["crypted_password", nil], ["email", "santos@goldner.info"], ["ic", 1178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'ceasar@parkerlindgren.org' LIMIT 1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["crypted_password", nil], ["email", "ceasar@parkerlindgren.org"], ["ic", 1278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 2[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["user_id", 2]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 2 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["due_date", Tue, 25 Dec 2012], ["issue_date", Tue, 11 Dec 2012], ["number", 2], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'sabrina.blanda@bechtelar.com' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["crypted_password", nil], ["email", "sabrina.blanda@bechtelar.com"], ["ic", 1378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 3], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 3[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["currency_id", 2], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["user_id", 3]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 2 AND "invoice_bar_invoices"."user_id" = 1
- [1m[36mInvoiceBar::Invoice Load (0.1ms)[0m [1mSELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 2 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'ron.rogahn@gulgowskiparisian.net' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["crypted_password", nil], ["email", "ron.rogahn@gulgowskiparisian.net"], ["ic", 1478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 4], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 4[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["currency_id", 3], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Tue, 11 Dec 2012 22:16:28 UTC +00:00], ["user_id", 4]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001125 AND "invoice_bar_invoices"."user_id" = 1
- [1m[36m (1.4ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
-Processing by InvoiceBar::AccountsController#create as HTML
- Parameters: {"account"=>{"name"=>"Account", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"2", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 133ms (ActiveRecord: 0.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (6.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/edit.html.erb within invoice_bar/layouts/signed_in (8.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 19ms (Views: 14.9ms | ActiveRecord: 0.7ms)
+---------------------------------------------------------------
+InvoiceBar::AccountsControllerTest: test_should_destroy_account
+---------------------------------------------------------------
Processing by InvoiceBar::AccountsController#destroy as HTML
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (7.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 68ms (Views: 65.4ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::AccountsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::AccountsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (4.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::AccountsController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::AccountsController#update as HTML
- Parameters: {"id"=>"1", "account"=>{"name"=>"Name 19", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 42ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ContactsController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 37ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ContactsController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (7.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::ContactsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 93ms (Views: 28.7ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ContactsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 15ms (Views: 12.1ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::ContactsController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#create as HTML
- Parameters: {"currency"=>{"name"=>"Currency", "symbol"=>"C", "priority"=>"0"}}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 27ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#edit as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#index as HTML
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#new as HTML
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#show as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#update as HTML
- Parameters: {"id"=>"1", "currency"=>{"name"=>"Currency", "symbol"=>"C", "priority"=>"0"}}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoicesController#create as HTML
- Parameters: {"invoice"=>{"number"=>"201001127", "amount"=>"1000000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "due_date"=>"2012-12-25", "issue_date"=>"2012-12-11", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 15ms (ActiveRecord: 0.0ms)
+Redirected to http://test.host/invoice_bar/accounts/1
+Completed 302 Found in 10ms (ActiveRecord: 2.1ms)
+---------------------------------------------------------------
+InvoiceBar::InvoicesControllerTest: test_should_destroy_invoice
+---------------------------------------------------------------
Processing by InvoiceBar::InvoicesController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoicesController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (5.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (45.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 54ms (Views: 51.1ms | ActiveRecord: 1.0ms)
-Processing by InvoiceBar::InvoicesController#index as HTML
-Completed 500 Internal Server Error in 12ms
+ Parameters: {"number"=>"201001129"}
+Redirected to http://test.host/invoice_bar/invoices/201001129
+Completed 302 Found in 15ms (ActiveRecord: 1.7ms)
+-------------------------------------------------------
+InvoiceBar::InvoicesControllerTest: test_should_get_new
+-------------------------------------------------------
Processing by InvoiceBar::InvoicesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (14.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 23ms (Views: 19.5ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::InvoicesController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/invoices/_address.html.erb (27.1ms)
-Completed 500 Internal Server Error in 40ms
-Processing by InvoiceBar::InvoicesController#update as HTML
- Parameters: {"id"=>"1", "invoice"=>{"number"=>"2010011213", "amount"=>"1000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "due_date"=>"2012-12-25", "issue_date"=>"2012-12-11", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#create as HTML
- Parameters: {"user"=>{"name"=>"Name 19", "email"=>"annabell.upton@moriette.org", "ic"=>"4278974", "bill_number_format"=>"%Y%m%d%2", "crypted_password"=>"[FILTERED]", "invoice_number_format"=>"%Y%m%d%2", "next_bill_number"=>"1", "next_invoice_number"=>"1", "next_received_bill_number"=>"1", "phone"=>nil, "received_bill_number_format"=>"%Y%m%d%2", "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/login
-Completed 302 Found in 10ms (ActiveRecord: 1.3ms)
-Processing by InvoiceBar::UsersController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#edit as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#index as HTML
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/users/_form.html.erb (75.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 149ms (Views: 146.8ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::UsersController#show as HTML
- Parameters: {"id"=>"1"}
-Completed 200 OK in 23ms (Views: 20.9ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::UsersController#update as HTML
- Parameters: {"id"=>"1", "user"=>{"name"=>"Name 19", "email"=>"cora_reilly@durganabernathy.org", "ic"=>"4878974", "bill_number_format"=>"%Y%m%d%2", "crypted_password"=>"[FILTERED]", "invoice_number_format"=>"%Y%m%d%2", "next_bill_number"=>"1", "next_invoice_number"=>"1", "next_received_bill_number"=>"1", "phone"=>nil, "received_bill_number_format"=>"%Y%m%d%2", "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
-Connecting to database specified by database.yml
-Processing by InvoiceBar::AccountsController#create as HTML
- Parameters: {"account"=>{"name"=>"Account", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"2", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 129ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (7.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 66ms (Views: 63.9ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::AccountsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::AccountsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (4.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::AccountsController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 73ms (Views: 71.6ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::AccountsController#update as HTML
- Parameters: {"id"=>"1", "account"=>{"name"=>"Name 19", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 41ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ContactsController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 33ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ContactsController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (7.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 16ms (Views: 14.0ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::ContactsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 80ms (Views: 78.5ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::ContactsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 15ms (Views: 12.7ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::ContactsController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#create as HTML
- Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>"0"}}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 18ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#edit as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#index as HTML
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#new as HTML
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#show as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#update as HTML
- Parameters: {"id"=>"1", "currency"=>{"name"=>"Currency", "symbol"=>"C", "priority"=>"0"}}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (5.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (23.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (24.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 49ms (Views: 29.6ms | ActiveRecord: 1.7ms)
+--------------------------------------------------------------
+InvoiceBar::InvoicesControllerTest: test_should_create_invoice
+--------------------------------------------------------------
Processing by InvoiceBar::InvoicesController#create as HTML
- Parameters: {"invoice"=>{"number"=>"201001127", "amount"=>"1000000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "due_date"=>"2012-12-25", "issue_date"=>"2012-12-11", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoicesController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
+ Parameters: {"invoice"=>{"number"=>"2010011212", "amount"=>"1000000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "due_date"=>"2016-07-22", "issue_date"=>"2016-07-08", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
+Redirected to http://test.host/invoice_bar/invoices/2
+Completed 302 Found in 57ms (ActiveRecord: 5.8ms)
+--------------------------------------------------------------
+InvoiceBar::InvoicesControllerTest: test_should_update_invoice
+--------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#update as HTML
+ Parameters: {"invoice"=>{"number"=>"2010011213", "amount"=>"1000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "due_date"=>"2016-07-22", "issue_date"=>"2016-07-08", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}, "number"=>"2010011213"}
+Redirected to http://test.host/invoice_bar/invoices/1
+Completed 302 Found in 21ms (ActiveRecord: 1.6ms)
+--------------------------------------------------------
+InvoiceBar::InvoicesControllerTest: test_should_get_edit
+--------------------------------------------------------
Processing by InvoiceBar::InvoicesController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (6.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (32.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 40ms (Views: 37.2ms | ActiveRecord: 0.8ms)
+ Parameters: {"number"=>"2010011214"}
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (3.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (21.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (22.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 47ms (Views: 28.3ms | ActiveRecord: 2.3ms)
+---------------------------------------------------------
+InvoiceBar::InvoicesControllerTest: test_should_get_index
+---------------------------------------------------------
Processing by InvoiceBar::InvoicesController#index as HTML
-Completed 500 Internal Server Error in 10ms
-Processing by InvoiceBar::InvoicesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (15.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 23ms (Views: 20.1ms | ActiveRecord: 0.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (0.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (32.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 39ms (Views: 34.6ms | ActiveRecord: 2.3ms)
+------------------------------------------------------------
+InvoiceBar::InvoicesControllerTest: test_should_show_invoice
+------------------------------------------------------------
Processing by InvoiceBar::InvoicesController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/invoices/_address.html.erb (98.2ms)
-Completed 500 Internal Server Error in 111ms
-Processing by InvoiceBar::InvoicesController#update as HTML
- Parameters: {"id"=>"1", "invoice"=>{"number"=>"2010011213", "amount"=>"1000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "due_date"=>"2012-12-25", "issue_date"=>"2012-12-11", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#create as HTML
- Parameters: {"user"=>{"name"=>"Name 09", "email"=>"monte.beier@hudson.info", "ic"=>"4278974", "bill_number_format"=>"%Y%m%d%2", "crypted_password"=>"[FILTERED]", "invoice_number_format"=>"%Y%m%d%2", "next_bill_number"=>"1", "next_invoice_number"=>"1", "next_received_bill_number"=>"1", "phone"=>nil, "received_bill_number_format"=>"%Y%m%d%2", "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/login
-Completed 302 Found in 11ms (ActiveRecord: 1.5ms)
-Processing by InvoiceBar::UsersController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#edit as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#index as HTML
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/users/_form.html.erb (10.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 21ms (Views: 19.2ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::UsersController#show as HTML
- Parameters: {"id"=>"1"}
-Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::UsersController#update as HTML
- Parameters: {"id"=>"1", "user"=>{"name"=>"Name 09", "email"=>"armando@heidenreich.net", "ic"=>"4878974", "bill_number_format"=>"%Y%m%d%2", "crypted_password"=>"[FILTERED]", "invoice_number_format"=>"%Y%m%d%2", "next_bill_number"=>"1", "next_invoice_number"=>"1", "next_received_bill_number"=>"1", "phone"=>nil, "received_bill_number_format"=>"%Y%m%d%2", "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/
-Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
-Connecting to database specified by database.yml
- [1m[36m (0.5ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
-Migrating to CreateInvoiceBarAddresses (20121012142346)
-Migrating to CreateInvoiceBarInvoiceTemplates (20121012142357)
-Migrating to CreateInvoiceBarInvoices (20121012142418)
-Migrating to CreateInvoiceBarAccounts (20121012142428)
-Migrating to CreateInvoiceBarItems (20121012142442)
-Migrating to CreateInvoiceBarCurrencies (20121012142454)
-Migrating to CreateInvoiceBarContacts (20121012142502)
-Migrating to CreateInvoiceBarUsers (20121012144941)
-Migrating to CreateInvoiceBarReceipts (20121205185321)
-Migrating to CreateInvoiceBarReceiptTemplates (20121205185353)
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
-Connecting to database specified by database.yml
- [1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (3.5ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
- [1m[36m (2.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
- [1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
-Migrating to CreateInvoiceBarAddresses (20121012142346)
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.6ms)[0m CREATE TABLE "invoice_bar_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255) NOT NULL, "street_number" varchar(255) NOT NULL, "city" varchar(255) NOT NULL, "city_part" varchar(255), "postcode" varchar(255) NOT NULL, "extra_address_line" varchar(255), "addressable_id" integer NOT NULL, "addressable_type" varchar(255) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121012142346')[0m
- [1m[35m (2.6ms)[0m commit transaction
-Migrating to CreateInvoiceBarInvoiceTemplates (20121012142357)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m CREATE TABLE "invoice_bar_invoice_templates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "issue_date" date, "due_date" date, "contact_name" varchar(255), "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer, "payment_identification_number" integer, "account_id" integer, "amount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_invoice_bar_invoice_templates_on_name" ON "invoice_bar_invoice_templates" ("name")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142357')
- [1m[36m (2.6ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarInvoices (20121012142418)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "invoice_bar_invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" integer NOT NULL, "issue_date" date NOT NULL, "due_date" date NOT NULL, "contact_name" varchar(255) NOT NULL, "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer NOT NULL, "payment_identification_number" integer, "account_id" integer NOT NULL, "amount" integer NOT NULL, "sent" boolean DEFAULT 'f' NOT NULL, "paid" boolean DEFAULT 'f' NOT NULL, "issuer" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_invoices_on_number" ON "invoice_bar_invoices" ("number")
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_invoice_bar_invoices_on_contact_name" ON "invoice_bar_invoices" ("contact_name")[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_invoice_bar_invoices_on_contact_ic" ON "invoice_bar_invoices" ("contact_ic")
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_invoice_bar_invoices_on_payment_identification_number" ON "invoice_bar_invoices" ("payment_identification_number")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142418')
- [1m[36m (2.2ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarAccounts (20121012142428)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "invoice_bar_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "user_id" integer NOT NULL, "bank_account_number" varchar(255), "iban" varchar(255), "swift" varchar(255), "amount" integer DEFAULT 0 NOT NULL, "currency_id" integer DEFAULT 1 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_invoice_bar_accounts_on_name" ON "invoice_bar_accounts" ("name")
- [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121012142428')[0m
- [1m[35m (2.3ms)[0m commit transaction
-Migrating to CreateInvoiceBarItems (20121012142442)
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m CREATE TABLE "invoice_bar_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "price" integer NOT NULL, "unit" varchar(255), "number" integer, "amount" integer NOT NULL, "itemable_id" integer NOT NULL, "itemable_type" varchar(255) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_invoice_bar_items_on_name" ON "invoice_bar_items" ("name")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142442')
- [1m[36m (2.6ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarCurrencies (20121012142454)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "invoice_bar_currencies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "symbol" varchar(255) NOT NULL, "priority" integer DEFAULT 1 NOT NULL) [0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142454')
- [1m[36m (3.1ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarContacts (20121012142502)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "invoice_bar_contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "email" varchar(255), "phone" varchar(255), "web" varchar(255), "bank_account" varchar(255), "ic" integer, "dic" varchar(255), "user_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_contacts_on_name" ON "invoice_bar_contacts" ("name")
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_invoice_bar_contacts_on_ic" ON "invoice_bar_contacts" ("ic")[0m
- [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142502')
- [1m[36m (60.2ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarUsers (20121012144941)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.6ms)[0m [1mCREATE TABLE "invoice_bar_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) NOT NULL, "crypted_password" varchar(255), "salt" varchar(255), "remember_me_token" varchar(255), "remember_me_token_expires_at" datetime, "reset_password_token" varchar(255), "reset_password_token_expires_at" datetime, "reset_password_email_sent_at" datetime, "name" varchar(255) NOT NULL, "phone" varchar(255), "web" varchar(255), "ic" integer NOT NULL, "next_invoice_number" integer DEFAULT 1 NOT NULL, "next_bill_number" integer DEFAULT 1 NOT NULL, "next_received_bill_number" integer DEFAULT 1 NOT NULL, "invoice_number_format" varchar(255) DEFAULT '%Y%m%d%2' NOT NULL, "bill_number_format" varchar(255) DEFAULT '%Y%m%d%2' NOT NULL, "received_bill_number_format" varchar(255) DEFAULT '%Y%m%d%2' NOT NULL, "administrator" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_users_on_reset_password_token" ON "invoice_bar_users" ("reset_password_token")
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_invoice_bar_users_on_remember_me_token" ON "invoice_bar_users" ("remember_me_token")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012144941')
- [1m[36m (3.5ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarReceipts (20121205185321)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "invoice_bar_receipts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" integer NOT NULL, "issue_date" date NOT NULL, "contact_name" varchar(255) NOT NULL, "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer NOT NULL, "account_id" integer NOT NULL, "amount" integer NOT NULL, "invoice_id" integer, "issuer" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_receipts_on_number" ON "invoice_bar_receipts" ("number")
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_invoice_bar_receipts_on_contact_name" ON "invoice_bar_receipts" ("contact_name")[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_invoice_bar_receipts_on_contact_ic" ON "invoice_bar_receipts" ("contact_ic")
- [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121205185321')[0m
- [1m[35m (2.9ms)[0m commit transaction
-Migrating to CreateInvoiceBarReceiptTemplates (20121205185353)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.8ms)[0m CREATE TABLE "invoice_bar_receipt_templates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "issue_date" date, "contact_name" varchar(255), "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer, "account_id" integer, "amount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.3ms)[0m [1mCREATE INDEX "index_invoice_bar_receipt_templates_on_name" ON "invoice_bar_receipt_templates" ("name")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121205185353')
- [1m[36m (2.9ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
-Connecting to database specified by database.yml
- [1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (1.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
- [1m[36m (1.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
- [1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (2.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
- [1m[36m (1.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
-Migrating to CreateInvoiceBarAddresses (20121012142346)
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.7ms)[0m CREATE TABLE "invoice_bar_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255) NOT NULL, "street_number" varchar(255) NOT NULL, "city" varchar(255) NOT NULL, "city_part" varchar(255), "postcode" varchar(255) NOT NULL, "extra_address_line" varchar(255), "addressable_id" integer NOT NULL, "addressable_type" varchar(255) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121012142346')[0m
- [1m[35m (2.8ms)[0m commit transaction
-Migrating to CreateInvoiceBarInvoiceTemplates (20121012142357)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m CREATE TABLE "invoice_bar_invoice_templates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "issue_date" date, "due_date" date, "contact_name" varchar(255), "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer, "payment_identification_number" integer, "account_id" integer, "amount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_invoice_bar_invoice_templates_on_name" ON "invoice_bar_invoice_templates" ("name")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142357')
- [1m[36m (2.5ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarInvoices (20121012142418)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "invoice_bar_invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" integer NOT NULL, "issue_date" date NOT NULL, "due_date" date NOT NULL, "contact_name" varchar(255) NOT NULL, "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer NOT NULL, "payment_identification_number" integer, "account_id" integer NOT NULL, "amount" integer NOT NULL, "sent" boolean DEFAULT 'f' NOT NULL, "paid" boolean DEFAULT 'f' NOT NULL, "issuer" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_invoices_on_number" ON "invoice_bar_invoices" ("number")
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_invoice_bar_invoices_on_contact_name" ON "invoice_bar_invoices" ("contact_name")[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_invoice_bar_invoices_on_contact_ic" ON "invoice_bar_invoices" ("contact_ic")
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_invoice_bar_invoices_on_payment_identification_number" ON "invoice_bar_invoices" ("payment_identification_number")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142418')
- [1m[36m (2.8ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarAccounts (20121012142428)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "invoice_bar_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "user_id" integer NOT NULL, "bank_account_number" varchar(255), "iban" varchar(255), "swift" varchar(255), "amount" integer DEFAULT 0 NOT NULL, "currency_id" integer DEFAULT 1 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_accounts_on_name" ON "invoice_bar_accounts" ("name")
- [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121012142428')[0m
- [1m[35m (2.5ms)[0m commit transaction
-Migrating to CreateInvoiceBarItems (20121012142442)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m CREATE TABLE "invoice_bar_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "price" integer NOT NULL, "unit" varchar(255), "number" integer, "amount" integer NOT NULL, "itemable_id" integer NOT NULL, "itemable_type" varchar(255) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_invoice_bar_items_on_name" ON "invoice_bar_items" ("name")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142442')
- [1m[36m (3.0ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarCurrencies (20121012142454)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "invoice_bar_currencies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "symbol" varchar(255) NOT NULL, "priority" integer DEFAULT 1 NOT NULL) [0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142454')
- [1m[36m (2.7ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarContacts (20121012142502)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "invoice_bar_contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "email" varchar(255), "phone" varchar(255), "web" varchar(255), "bank_account" varchar(255), "ic" integer, "dic" varchar(255), "user_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_contacts_on_name" ON "invoice_bar_contacts" ("name")
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_invoice_bar_contacts_on_ic" ON "invoice_bar_contacts" ("ic")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142502')
- [1m[36m (3.2ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarUsers (20121012144941)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.6ms)[0m [1mCREATE TABLE "invoice_bar_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) NOT NULL, "crypted_password" varchar(255), "salt" varchar(255), "remember_me_token" varchar(255), "remember_me_token_expires_at" datetime, "reset_password_token" varchar(255), "reset_password_token_expires_at" datetime, "reset_password_email_sent_at" datetime, "name" varchar(255) NOT NULL, "phone" varchar(255), "web" varchar(255), "ic" integer NOT NULL, "next_invoice_number" integer DEFAULT 1 NOT NULL, "next_bill_number" integer DEFAULT 1 NOT NULL, "next_received_bill_number" integer DEFAULT 1 NOT NULL, "invoice_number_format" varchar(255) DEFAULT '%Y%m%d%2' NOT NULL, "bill_number_format" varchar(255) DEFAULT '%Y%m%d%2' NOT NULL, "received_bill_number_format" varchar(255) DEFAULT '%Y%m%d%2' NOT NULL, "administrator" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_users_on_reset_password_token" ON "invoice_bar_users" ("reset_password_token")
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_invoice_bar_users_on_remember_me_token" ON "invoice_bar_users" ("remember_me_token")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012144941')
- [1m[36m (3.0ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarReceipts (20121205185321)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "invoice_bar_receipts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" integer NOT NULL, "issue_date" date NOT NULL, "contact_name" varchar(255) NOT NULL, "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer NOT NULL, "account_id" integer NOT NULL, "amount" integer NOT NULL, "invoice_id" integer, "issuer" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_receipts_on_number" ON "invoice_bar_receipts" ("number")
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_invoice_bar_receipts_on_contact_name" ON "invoice_bar_receipts" ("contact_name")[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_receipts_on_contact_ic" ON "invoice_bar_receipts" ("contact_ic")
- [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121205185321')[0m
- [1m[35m (2.4ms)[0m commit transaction
-Migrating to CreateInvoiceBarReceiptTemplates (20121205185353)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.6ms)[0m CREATE TABLE "invoice_bar_receipt_templates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "issue_date" date, "contact_name" varchar(255), "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer, "account_id" integer, "amount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_invoice_bar_receipt_templates_on_name" ON "invoice_bar_receipt_templates" ("name")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121205185353')
- [1m[36m (3.3ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (20.8ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'brant.sauer@hintz.info' LIMIT 1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["crypted_password", nil], ["email", "brant.sauer@hintz.info"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["web", nil]]
- [1m[36mSQL (24.6ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jazmyn@hagenes.org' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["crypted_password", nil], ["email", "jazmyn@hagenes.org"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'Currency' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'C' LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 2
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["user_id", 2]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'coralie@boehm.com' LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["crypted_password", nil], ["email", "coralie@boehm.com"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 3], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'derrick@padbergking.name' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["crypted_password", nil], ["email", "derrick@padbergking.name"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 4], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'Currency' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'C' LIMIT 1[0m
- [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- [1m[36m (21.7ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'marta_thiel@reichert.biz' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["crypted_password", nil], ["email", "marta_thiel@reichert.biz"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'allene@walker.com' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["crypted_password", nil], ["email", "allene@walker.com"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'Currency' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'C' LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 2[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["user_id", 2]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001122 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "issuer", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["due_date", Mon, 07 Jan 2013], ["issue_date", Mon, 24 Dec 2012], ["issuer", true], ["number", 201001122], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.4ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'tillman@mitchell.com' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["crypted_password", nil], ["email", "tillman@mitchell.com"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'chauncey.monahan@schmitt.name' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["crypted_password", nil], ["email", "chauncey.monahan@schmitt.name"], ["ic", 878974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'Currency' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'C' LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 2
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["user_id", 2]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001123 AND "invoice_bar_invoices"."user_id" = 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "issuer", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["due_date", Mon, 07 Jan 2013], ["issue_date", Mon, 24 Dec 2012], ["issuer", true], ["number", 201001123], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["user_id", 1]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 1000], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.7ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.4ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'zelda_bruen@nader.net' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["crypted_password", nil], ["email", "zelda_bruen@nader.net"], ["ic", 978974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'ashleigh_beer@eichmann.net' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["crypted_password", nil], ["email", "ashleigh_beer@eichmann.net"], ["ic", 1078974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'Currency' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'C' LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 2[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["user_id", 2]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 2 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "issuer", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["due_date", Mon, 07 Jan 2013], ["issue_date", Mon, 24 Dec 2012], ["issuer", true], ["number", 2], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'stewart.hills@weinatschimmel.com' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["crypted_password", nil], ["email", "stewart.hills@weinatschimmel.com"], ["ic", 1178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 3], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:18:35 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'Currency' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'C' LIMIT 1[0m
- [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- [1m[36m (1.6ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'kaden@nader.info' LIMIT 1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["crypted_password", nil], ["email", "kaden@nader.info"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.1ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'ashton_brown@wisoky.info' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["crypted_password", nil], ["email", "ashton_brown@wisoky.info"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'Currency' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'C' LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 2
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["user_id", 2]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'elisa@veum.info' LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["crypted_password", nil], ["email", "elisa@veum.info"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 3], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'mason@bruenhills.name' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["crypted_password", nil], ["email", "mason@bruenhills.name"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 4], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'Currency' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'C' LIMIT 1[0m
- [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- [1m[36m (1.9ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'ethel@feeney.name' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["crypted_password", nil], ["email", "ethel@feeney.name"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'einar.keebler@aufderhar.org' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["crypted_password", nil], ["email", "einar.keebler@aufderhar.org"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'Currency' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'C' LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "Currency"], ["priority", 0], ["symbol", "C"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 2[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:20:30 UTC +00:00], ["user_id", 2]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = 2 AND "invoice_bar_receipts"."user_id" = 1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_receipts" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "invoice_id", "issue_date", "issuer", "number", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Mon, 24 Dec 2012 12:20:31 UTC +00:00], ["invoice_id", nil], ["issue_date", Mon, 24 Dec 2012], ["issuer", true], ["number", 2], ["updated_at", Mon, 24 Dec 2012 12:20:31 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:20:31 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:20:31 UTC +00:00]]
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Mon, 24 Dec 2012 12:20:31 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Mon, 24 Dec 2012 12:20:31 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jovany_goyette@stroman.org' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:20:31 UTC +00:00], ["crypted_password", nil], ["email", "jovany_goyette@stroman.org"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:20:31 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 3], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:20:31 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:20:31 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'Currency' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'C' LIMIT 1[0m
- [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- [1m[36m (1.7ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jeanette_schimmel@batz.biz' LIMIT 1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["crypted_password", nil], ["email", "jeanette_schimmel@batz.biz"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'breana_bogan@bartoletticollins.info' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["crypted_password", nil], ["email", "breana_bogan@bartoletticollins.info"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc1' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k1' LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "kc1"], ["priority", 0], ["symbol", "k1"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 2
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["user_id", 2]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'tillman@anderson.net' LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["crypted_password", nil], ["email", "tillman@anderson.net"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 3], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'dewitt_jewe@wildermanbailey.info' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["crypted_password", nil], ["email", "dewitt_jewe@wildermanbailey.info"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 4], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc2' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k2' LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc2"], ["priority", 0], ["symbol", "k2"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 4[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["currency_id", 2], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["user_id", 4]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'stephon@hyatt.org' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["crypted_password", nil], ["email", "stephon@hyatt.org"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 5], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'camryn@yostgulgowski.info' LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["crypted_password", nil], ["email", "camryn@yostgulgowski.info"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 6], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc3' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k3' LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "kc3"], ["priority", 0], ["symbol", "k3"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 6
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["currency_id", 3], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["user_id", 6]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'delbert@turcotte.biz' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["crypted_password", nil], ["email", "delbert@turcotte.biz"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:17 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'catharine@schinner.info' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["crypted_password", nil], ["email", "catharine@schinner.info"], ["ic", 878974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc4' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k4' LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc4"], ["priority", 0], ["symbol", "k4"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 2[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["user_id", 2]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = 2 AND "invoice_bar_receipts"."user_id" = 1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_receipts" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "invoice_id", "issue_date", "issuer", "number", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["invoice_id", nil], ["issue_date", Mon, 24 Dec 2012], ["issuer", true], ["number", 2], ["updated_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00]]
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00]]
- [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'yesenia.doyle@ullrichwalsh.net' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["crypted_password", nil], ["email", "yesenia.doyle@ullrichwalsh.net"], ["ic", 978974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 3], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc5' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k5' LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc5"], ["priority", 0], ["symbol", "k5"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 3[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["currency_id", 2], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["user_id", 3]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = 2 AND "invoice_bar_receipts"."user_id" = 1
- [1m[36mInvoiceBar::Receipt Load (0.1ms)[0m [1mSELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = 2 AND "invoice_bar_receipts"."user_id" = 1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jazmyn@schulist.biz' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["crypted_password", nil], ["email", "jazmyn@schulist.biz"], ["ic", 1078974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 4], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc6' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k6' LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc6"], ["priority", 0], ["symbol", "k6"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 4[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["currency_id", 3], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:23:18 UTC +00:00], ["user_id", 4]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = 201001123 AND "invoice_bar_receipts"."user_id" = 1
- [1m[36m (1.3ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'yasmine@windlerfahey.biz' LIMIT 1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["crypted_password", nil], ["email", "yasmine@windlerfahey.biz"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.1ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'greyson.spencer@white.org' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["crypted_password", nil], ["email", "greyson.spencer@white.org"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc1' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k1' LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "kc1"], ["priority", 0], ["symbol", "k1"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 2
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["user_id", 2]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'hugh@heaney.info' LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["crypted_password", nil], ["email", "hugh@heaney.info"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 3], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'casimir@rowehickle.biz' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["crypted_password", nil], ["email", "casimir@rowehickle.biz"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 4], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc2' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k2' LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc2"], ["priority", 0], ["symbol", "k2"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 4[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["currency_id", 2], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["user_id", 4]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'mariam@johnson.info' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["crypted_password", nil], ["email", "mariam@johnson.info"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 5], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'cristal@breitenberg.net' LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["crypted_password", nil], ["email", "cristal@breitenberg.net"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 6], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc3' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k3' LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "kc3"], ["priority", 0], ["symbol", "k3"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 6
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["currency_id", 3], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["user_id", 6]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (2.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'jeramie@baumbachquitzon.net' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["crypted_password", nil], ["email", "jeramie@baumbachquitzon.net"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'creola@wyman.name' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["crypted_password", nil], ["email", "creola@wyman.name"], ["ic", 878974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc4' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k4' LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc4"], ["priority", 0], ["symbol", "k4"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 2[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["user_id", 2]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = 2 AND "invoice_bar_receipts"."user_id" = 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_receipts" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "invoice_id", "issue_date", "issuer", "number", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["invoice_id", nil], ["issue_date", Mon, 24 Dec 2012], ["issuer", true], ["number", 2], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00]]
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'owen@bayerfriesen.name' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["crypted_password", nil], ["email", "owen@bayerfriesen.name"], ["ic", 978974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 3], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc5' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k5' LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc5"], ["priority", 0], ["symbol", "k5"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 3[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["currency_id", 2], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["user_id", 3]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = 2 AND "invoice_bar_receipts"."user_id" = 1
- [1m[36mInvoiceBar::Receipt Load (0.1ms)[0m [1mSELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = 2 AND "invoice_bar_receipts"."user_id" = 1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'odie@oberbrunner.name' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["crypted_password", nil], ["email", "odie@oberbrunner.name"], ["ic", 1078974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 4], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc6' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k6' LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc6"], ["priority", 0], ["symbol", "k6"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 4[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["currency_id", 3], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 12:23:52 UTC +00:00], ["user_id", 4]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = 201001123 AND "invoice_bar_receipts"."user_id" = 1
- [1m[36m (1.4ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'anais_sauer@medhursthammes.biz' LIMIT 1[0m
- [1m[35mSQL (15.1ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["crypted_password", nil], ["email", "anais_sauer@medhursthammes.biz"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["web", nil]]
- [1m[36mSQL (29.5ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Address Load (0.2ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 2 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (3.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (53.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/new.html.erb within invoice_bar/layouts/signed_in (116.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.7ms)
-Completed 200 OK in 431ms (Views: 177.0ms | ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_contacts" [0m
- [1m[35m (0.9ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'dwight_willms@langoshmayert.com' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["crypted_password", nil], ["email", "dwight_willms@langoshmayert.com"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
-Processing by InvoiceBar::ContactsController#destroy as HTML
- Parameters: {"id"=>"1"}
- [1m[36mInvoiceBar::Contact Load (0.2ms)[0m [1mSELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Address Load (0.1ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m DELETE FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? [["id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/contacts
-Completed 302 Found in 44ms (ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
- [1m[36m (0.9ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.3ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'louvenia@schmitt.name' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["crypted_password", nil], ["email", "louvenia@schmitt.name"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::ContactsController#edit as HTML
- Parameters: {"id"=>"1"}
- [1m[36mInvoiceBar::Contact Load (0.1ms)[0m [1mSELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1[0m [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- [1m[35mInvoiceBar::Address Load (0.2ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Contact' LIMIT 1
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (5.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 0.2ms)
- [1m[36m (1.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'elenora@gibson.net' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["crypted_password", nil], ["email", "elenora@gibson.net"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::ContactsController#index as HTML
- [1m[36mInvoiceBar::Contact Load (0.2ms)[0m [1mSELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" LIMIT 25 OFFSET 0[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_contacts"
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 62ms (Views: 61.0ms | ActiveRecord: 0.3ms)
- [1m[36m (1.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'nils@block.biz' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["crypted_password", nil], ["email", "nils@block.biz"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::ContactsController#new as HTML
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (6.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.1ms)
- [1m[36m (1.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'janae_mueller@dickens.biz' LIMIT 1
- [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["crypted_password", nil], ["email", "janae_mueller@dickens.biz"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::ContactsController#show as HTML
- Parameters: {"id"=>"1"}
- [1m[36mInvoiceBar::Contact Load (0.1ms)[0m [1mSELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1[0m [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 28ms (Views: 26.2ms | ActiveRecord: 0.1ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'aryanna@klingmiller.name' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["crypted_password", nil], ["email", "aryanna@klingmiller.name"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Mon, 24 Dec 2012 13:00:07 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/contacts/1
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
- [1m[36m (1.1ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc1' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k1' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "kc1"], ["priority", 0], ["symbol", "k1"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_currencies" [0m
-Processing by InvoiceBar::CurrenciesController#create as HTML
- Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>"0"}}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 464ms (ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_currencies"
- [1m[36m (1.9ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc2' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k2' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc2"], ["priority", 0], ["symbol", "k2"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_currencies"
-Processing by InvoiceBar::CurrenciesController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_currencies" [0m
- [1m[35m (0.7ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc3' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k3' LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "kc3"], ["priority", 0], ["symbol", "k3"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::CurrenciesController#edit as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
- [1m[36m (0.9ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc4' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k4' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc4"], ["priority", 0], ["symbol", "k4"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::CurrenciesController#index as HTML
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
- [1m[35m (1.3ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc5' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k5' LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "kc5"], ["priority", 0], ["symbol", "k5"]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::CurrenciesController#new as HTML
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
- [1m[36m (0.7ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc6' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k6' LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc6"], ["priority", 0], ["symbol", "k6"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::CurrenciesController#show as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
- [1m[35m (0.8ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc7' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k7' LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "kc7"], ["priority", 0], ["symbol", "k7"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ Parameters: {"number"=>"2010011216"}
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (8.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (9.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 24ms (Views: 16.2ms | ActiveRecord: 1.0ms)
+-----------------------------------------------------------------
+InvoiceBar::CurrenciesControllerTest: test_should_update_currency
+-----------------------------------------------------------------
Processing by InvoiceBar::CurrenciesController#update as HTML
- Parameters: {"id"=>"1", "currency"=>{"name"=>"kc7", "symbol"=>"k7", "priority"=>"0"}}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
- [1m[36m (0.8ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'dora.pollich@ondricka.com' LIMIT 1[0m
- [1m[35mSQL (6.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:02:59 UTC +00:00], ["crypted_password", nil], ["email", "dora.pollich@ondricka.com"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:02:59 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.0ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:02:59 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:02:59 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Mon, 24 Dec 2012 13:02:59 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Mon, 24 Dec 2012 13:02:59 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc1' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k1' LIMIT 1
- [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "kc1"], ["priority", 0], ["symbol", "k1"]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_currencies" [0m
+ Parameters: {"currency"=>{"name"=>"kc30", "symbol"=>"k30", "priority"=>"0"}, "id"=>"1"}
+Redirected to http://test.host/invoice_bar/currencies/1
+Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
+-----------------------------------------------------------------
+InvoiceBar::CurrenciesControllerTest: test_should_create_currency
+-----------------------------------------------------------------
Processing by InvoiceBar::CurrenciesController#create as HTML
Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>"0"}}
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'Dollars' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = '$' LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "Dollars"], ["priority", 0], ["symbol", "$"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/invoice_bar/currencies/2
-Completed 302 Found in 149ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_currencies" [0m
- [1m[35m (2.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'samson.macejkovic@torpgrimes.org' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["crypted_password", nil], ["email", "samson.macejkovic@torpgrimes.org"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc2' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k2' LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "kc2"], ["priority", 0], ["symbol", "k2"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_currencies" [0m
-Processing by InvoiceBar::CurrenciesController#destroy as HTML
- Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Currency Load (0.2ms)[0m SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.1ms)[0m DELETE FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? [["id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/currencies
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_currencies"
- [1m[36m (1.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'emmy@kirlinschulist.com' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["crypted_password", nil], ["email", "emmy@kirlinschulist.com"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00]]
- [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc3' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k3' LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc3"], ["priority", 0], ["symbol", "k3"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Completed 302 Found in 11ms (ActiveRecord: 0.9ms)
+----------------------------------------------------------
+InvoiceBar::CurrenciesControllerTest: test_should_get_edit
+----------------------------------------------------------
Processing by InvoiceBar::CurrenciesController#edit as HTML
Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Currency Load (0.1ms)[0m SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (6.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 94ms (Views: 92.7ms | ActiveRecord: 0.1ms)
- [1m[36m (1.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'dulce@ko.org' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["crypted_password", nil], ["email", "dulce@ko.org"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc4' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k4' LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc4"], ["priority", 0], ["symbol", "k4"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (9.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/edit.html.erb within invoice_bar/layouts/signed_in (11.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 19ms (Views: 18.5ms | ActiveRecord: 0.1ms)
+-----------------------------------------------------------
+InvoiceBar::CurrenciesControllerTest: test_should_get_index
+-----------------------------------------------------------
Processing by InvoiceBar::CurrenciesController#index as HTML
- [1m[35mInvoiceBar::Currency Load (0.1ms)[0m SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies"
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.4ms)
-Completed 200 OK in 23ms (Views: 22.3ms | ActiveRecord: 0.1ms)
- [1m[36m (1.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.5ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'annabelle@powlowski.org' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["crypted_password", nil], ["email", "annabelle@powlowski.org"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["bank_account", nil], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc5' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k5' LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc5"], ["priority", 0], ["symbol", "k5"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/index.html.erb within invoice_bar/layouts/signed_in (2.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.2ms)
+---------------------------------------------------------
+InvoiceBar::CurrenciesControllerTest: test_should_get_new
+---------------------------------------------------------
Processing by InvoiceBar::CurrenciesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms)
- [1m[35m (1.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'dane@bogisichjones.org' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["crypted_password", nil], ["email", "dane@bogisichjones.org"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc6' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k6' LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "kc6"], ["priority", 0], ["symbol", "k6"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::CurrenciesController#show as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (2.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/new.html.erb within invoice_bar/layouts/signed_in (3.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (3.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (4.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 15ms (Views: 14.7ms | ActiveRecord: 0.0ms)
+------------------------------------------------------------------
+InvoiceBar::CurrenciesControllerTest: test_should_destroy_currency
+------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#destroy as HTML
Parameters: {"id"=>"1"}
- [1m[36mInvoiceBar::Currency Load (0.1ms)[0m [1mSELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1[0m [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 19ms (Views: 16.9ms | ActiveRecord: 0.1ms)
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'alvena_bogisich@donnelly.biz' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["crypted_password", nil], ["email", "alvena_bogisich@donnelly.biz"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_contacts" ("bank_account", "created_at", "dic", "email", "ic", "name", "phone", "updated_at", "user_id", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", nil], ["created_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["dic", nil], ["email", nil], ["ic", nil], ["name", "Person"], ["phone", nil], ["updated_at", Mon, 24 Dec 2012 13:03:00 UTC +00:00], ["user_id", 1], ["web", nil]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc7' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k7' LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "kc7"], ["priority", 0], ["symbol", "k7"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::CurrenciesController#update as HTML
- Parameters: {"id"=>"1", "currency"=>{"name"=>"kc7", "symbol"=>"k7", "priority"=>"0"}}
- [1m[36mInvoiceBar::Currency Load (0.1ms)[0m [1mSELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE ("invoice_bar_currencies"."name" = 'kc7' AND "invoice_bar_currencies"."id" != 1) LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE ("invoice_bar_currencies"."symbol" = 'k7' AND "invoice_bar_currencies"."id" != 1) LIMIT 1
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/invoice_bar/currencies/1
-Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
- [1m[35m (1.1ms)[0m rollback transaction
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'norma_donnelly@doylelindgren.biz' LIMIT 1[0m
- [1m[35mSQL (6.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["crypted_password", nil], ["email", "norma_donnelly@doylelindgren.biz"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.1ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_users" [0m
-Processing by InvoiceBar::UsersController#create as HTML
- Parameters: {"user"=>{"name"=>"Name 09", "email"=>"krista@medhurst.name", "ic"=>"278974", "bill_number_format"=>"%Y%m%d%2", "crypted_password"=>"[FILTERED]", "invoice_number_format"=>"%Y%m%d%2", "next_bill_number"=>"1", "next_invoice_number"=>"1", "next_received_bill_number"=>"1", "phone"=>nil, "received_bill_number_format"=>"%Y%m%d%2", "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Load (0.1ms)[0m SELECT "invoice_bar_users".* FROM "invoice_bar_users"
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'krista@medhurst.name' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["crypted_password", nil], ["email", "krista@medhurst.name"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/login
-Completed 302 Found in 36ms (ActiveRecord: 1.3ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_users"
- [1m[36m (2.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'stephany@cormierledner.biz' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["crypted_password", nil], ["email", "stephany@cormierledner.biz"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_users"
-Processing by InvoiceBar::UsersController#destroy as HTML
+Completed 302 Found in 9ms (ActiveRecord: 1.7ms)
+---------------------------------------------------------------
+InvoiceBar::CurrenciesControllerTest: test_should_show_currency
+---------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#show as HTML
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 17ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_users" [0m
- [1m[35m (1.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'laury_ondricka@kozey.name' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["crypted_password", nil], ["email", "laury_ondricka@kozey.name"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::UsersController#edit as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
- [1m[36m (1.2ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'abigayle_cormier@cummerata.name' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["crypted_password", nil], ["email", "abigayle_cormier@cummerata.name"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::UsersController#index as HTML
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'saul_gorczany@tromp.org' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["crypted_password", nil], ["email", "saul_gorczany@tromp.org"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::UsersController#new as HTML
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/users/_form.html.erb (15.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 179ms (Views: 177.1ms | ActiveRecord: 0.1ms)
- [1m[36m (0.9ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'leola.hackett@quigley.info' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["crypted_password", nil], ["email", "leola.hackett@quigley.info"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::UsersController#show as HTML
- Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::User Load (0.2ms)[0m SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 32ms (Views: 29.7ms | ActiveRecord: 0.2ms)
- [1m[36m (0.9ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'curtis_roob@schiller.biz' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["crypted_password", nil], ["email", "curtis_roob@schiller.biz"], ["ic", 878974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::UsersController#update as HTML
- Parameters: {"id"=>"1", "user"=>{"name"=>"Name 09", "email"=>"curtis_roob@schiller.biz", "ic"=>"878974", "bill_number_format"=>"%Y%m%d%2", "crypted_password"=>"[FILTERED]", "invoice_number_format"=>"%Y%m%d%2", "next_bill_number"=>"1", "next_invoice_number"=>"1", "next_received_bill_number"=>"1", "phone"=>nil, "received_bill_number_format"=>"%Y%m%d%2", "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
- [1m[35mInvoiceBar::User Load (0.1ms)[0m SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Address Load (0.2ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::User' LIMIT 1
- [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ?[0m [["id", 1]]
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE ("invoice_bar_users"."email" = 'curtis_roob@schiller.biz' AND "invoice_bar_users"."id" != 1) LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:04:07 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/users/1
-Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
- [1m[36m (1.1ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'tyrese_terry@wildermancole.net' LIMIT 1[0m
- [1m[35mSQL (6.9ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["crypted_password", nil], ["email", "tyrese_terry@wildermancole.net"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["web", nil]]
- [1m[36mSQL (7.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_users" [0m
-Processing by InvoiceBar::UsersController#create as HTML
- Parameters: {"user"=>{"name"=>"Name 09", "email"=>"grace_swift@swift.com", "ic"=>"278974", "bill_number_format"=>"%Y%m%d%2", "crypted_password"=>"[FILTERED]", "invoice_number_format"=>"%Y%m%d%2", "next_bill_number"=>"1", "next_invoice_number"=>"1", "next_received_bill_number"=>"1", "phone"=>nil, "received_bill_number_format"=>"%Y%m%d%2", "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Load (0.2ms)[0m SELECT "invoice_bar_users".* FROM "invoice_bar_users"
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'grace_swift@swift.com' LIMIT 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["crypted_password", nil], ["email", "grace_swift@swift.com"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 2], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/invoice_bar/login
-Completed 302 Found in 36ms (ActiveRecord: 1.3ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_users"
- [1m[36m (1.9ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'naomi@littel.net' LIMIT 1
- [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["crypted_password", nil], ["email", "naomi@littel.net"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_users"
-Processing by InvoiceBar::UsersController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 21ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_users" [0m
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'osvaldo@sporerfranecki.net' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["crypted_password", nil], ["email", "osvaldo@sporerfranecki.net"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::UsersController#profile as HTML
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_login rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
- [1m[36m (0.9ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'rebeka@zulauf.net' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["crypted_password", nil], ["email", "rebeka@zulauf.net"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::UsersController#index as HTML
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
- [1m[35m (1.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'georgianna@schoen.net' LIMIT 1[0m
- [1m[35mSQL (0.7ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["crypted_password", nil], ["email", "georgianna@schoen.net"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:06:52 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::UsersController#new as HTML
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/users/_form.html.erb (15.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 143ms (Views: 141.3ms | ActiveRecord: 0.1ms)
- [1m[36m (1.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.3ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'osvaldo.okon@leuschke.name' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:06:53 UTC +00:00], ["crypted_password", nil], ["email", "osvaldo.okon@leuschke.name"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:06:53 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:06:53 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:06:53 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::UsersController#show as HTML
- Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::User Load (0.2ms)[0m SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.2ms)
- [1m[36m (1.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'bridget@bradtkezemlak.info' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", true], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:06:53 UTC +00:00], ["crypted_password", nil], ["email", "bridget@bradtkezemlak.info"], ["ic", 878974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:06:53 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:06:53 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:06:53 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::UsersController#update as HTML
- Parameters: {"id"=>"1", "user"=>{"name"=>"Name 09", "email"=>"bridget@bradtkezemlak.info", "ic"=>"878974", "bill_number_format"=>"%Y%m%d%2", "crypted_password"=>"[FILTERED]", "invoice_number_format"=>"%Y%m%d%2", "next_bill_number"=>"1", "next_invoice_number"=>"1", "next_received_bill_number"=>"1", "phone"=>nil, "received_bill_number_format"=>"%Y%m%d%2", "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
- [1m[35mInvoiceBar::User Load (0.1ms)[0m SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", "1"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Address Load (0.1ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::User' LIMIT 1
- [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ?[0m [["id", 1]]
- [1m[35mInvoiceBar::User Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE ("invoice_bar_users"."email" = 'bridget@bradtkezemlak.info' AND "invoice_bar_users"."id" != 1) LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:06:53 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:06:53 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/users/1
-Completed 302 Found in 77ms (ActiveRecord: 0.0ms)
- [1m[36m (1.1ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'verna@blanda.name' LIMIT 1[0m
- [1m[35mSQL (6.4ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:07:43 UTC +00:00], ["crypted_password", nil], ["email", "verna@blanda.name"], ["ic", 178974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:07:43 UTC +00:00], ["web", nil]]
- [1m[36mSQL (6.9ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:07:43 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:07:43 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc1' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k1' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc1"], ["priority", 0], ["symbol", "k1"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 13:07:43 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 13:07:43 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001121 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "issuer", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Mon, 24 Dec 2012 13:07:43 UTC +00:00], ["due_date", Mon, 07 Jan 2013], ["issue_date", Mon, 24 Dec 2012], ["issuer", true], ["number", 201001121], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Mon, 24 Dec 2012 13:07:43 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:07:43 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:07:43 UTC +00:00]]
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Mon, 24 Dec 2012 13:07:43 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Mon, 24 Dec 2012 13:07:43 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices"
-Processing by InvoiceBar::InvoicesController#create as HTML
- Parameters: {"invoice"=>{"number"=>"201001122", "amount"=>"1000000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "due_date"=>"2013-01-07", "issue_date"=>"2012-12-24", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}}
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001122 AND "invoice_bar_invoices"."user_id" = 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "issuer", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["account_id", 1], ["amount", 0], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Mon, 24 Dec 2012 13:07:43 UTC +00:00], ["due_date", Mon, 07 Jan 2013], ["issue_date", Mon, 24 Dec 2012], ["issuer", true], ["number", 201001122], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Mon, 24 Dec 2012 13:07:43 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001122 AND "invoice_bar_invoices"."user_id" = 1
- [1m[36mInvoiceBar::Invoice Load (0.1ms)[0m [1mSELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001122 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/invoices/2
-Completed 302 Found in 148ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" [0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'odell@kunze.name' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["crypted_password", nil], ["email", "odell@kunze.name"], ["ic", 278974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc2' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k2' LIMIT 1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc2"], ["priority", 0], ["symbol", "k2"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001123 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "issuer", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["due_date", Mon, 07 Jan 2013], ["issue_date", Mon, 24 Dec 2012], ["issuer", true], ["number", 201001123], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices"
-Processing by InvoiceBar::InvoicesController#destroy as HTML
- Parameters: {"id"=>"1"}
- [1m[36mInvoiceBar::Invoice Load (0.2ms)[0m [1mSELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Address Load (0.2ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Invoice' LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 2]]
- [1m[36mInvoiceBar::Item Load (0.1ms)[0m [1mSELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = 1 AND "invoice_bar_items"."itemable_type" = 'InvoiceBar::Invoice'[0m
- [1m[35mSQL (0.2ms)[0m DELETE FROM "invoice_bar_items" WHERE "invoice_bar_items"."id" = ? [["id", 1]]
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."id" = ?[0m [["id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/invoices
-Completed 302 Found in 36ms (ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" [0m
- [1m[35m (1.7ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'gladyce@greenholt.net' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["crypted_password", nil], ["email", "gladyce@greenholt.net"], ["ic", 378974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc3' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k3' LIMIT 1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc3"], ["priority", 0], ["symbol", "k3"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001124 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "issuer", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["due_date", Mon, 07 Jan 2013], ["issue_date", Mon, 24 Dec 2012], ["issuer", true], ["number", 201001124], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::InvoicesController#edit as HTML
- Parameters: {"id"=>"1"}
- [1m[35mInvoiceBar::Invoice Load (0.1ms)[0m SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."id" = ? LIMIT 1 [["id", "1"]]
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (52.9ms)
- [1m[36mInvoiceBar::Contact Load (0.1ms)[0m [1mSELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = 1[0m
- [1m[35mInvoiceBar::InvoiceTemplate Load (0.1ms)[0m SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = 1
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.0ms)
- [1m[36mInvoiceBar::Address Load (0.2ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Invoice' LIMIT 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.6ms)
- [1m[35mInvoiceBar::Account Load (0.2ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = 1
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (5.6ms)
- [1m[36mInvoiceBar::Item Load (0.1ms)[0m [1mSELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = 1 AND "invoice_bar_items"."itemable_type" = 'InvoiceBar::Invoice'[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (143.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 229ms (Views: 225.9ms | ActiveRecord: 1.4ms)
- [1m[35m (1.4ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'deonte_howell@torphy.info' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["crypted_password", nil], ["email", "deonte_howell@torphy.info"], ["ic", 478974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc4' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k4' LIMIT 1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc4"], ["priority", 0], ["symbol", "k4"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001125 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35mSQL (0.6ms)[0m INSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "issuer", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["due_date", Mon, 07 Jan 2013], ["issue_date", Mon, 24 Dec 2012], ["issuer", true], ["number", 201001125], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::InvoicesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (2.7ms)
- [1m[35mInvoiceBar::Invoice Load (0.2ms)[0m SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" LIMIT 1 OFFSET 0
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" [0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 58ms (Views: 56.5ms | ActiveRecord: 0.3ms)
- [1m[35m (1.5ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'dante@abbott.info' LIMIT 1[0m
- [1m[35mSQL (0.5ms)[0m INSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["crypted_password", nil], ["email", "dante@abbott.info"], ["ic", 578974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 19"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["web", nil]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc5' LIMIT 1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k5' LIMIT 1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?) [["name", "kc5"], ["priority", 0], ["symbol", "k5"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001126 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "issuer", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["due_date", Mon, 07 Jan 2013], ["issue_date", Mon, 24 Dec 2012], ["issuer", true], ["number", 201001126], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["user_id", 1]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Processing by InvoiceBar::InvoicesController#new as HTML
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- [1m[35mInvoiceBar::Contact Load (0.1ms)[0m SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = 1
- [1m[36mInvoiceBar::InvoiceTemplate Load (0.1ms)[0m [1mSELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = 1
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (16.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 31ms (Views: 28.1ms | ActiveRecord: 0.5ms)
- [1m[36m (1.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'janis@larkin.name' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["crypted_password", nil], ["email", "janis@larkin.name"], ["ic", 678974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc6' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k6' LIMIT 1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "kc6"], ["priority", 0], ["symbol", "k6"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 09' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 09"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001127 AND "invoice_bar_invoices"."user_id" = 1
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "issuer", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["due_date", Mon, 07 Jan 2013], ["issue_date", Mon, 24 Dec 2012], ["issuer", true], ["number", 201001127], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["user_id", 1]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 1000], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::InvoicesController#show as HTML
- Parameters: {"id"=>"1"}
- [1m[36mInvoiceBar::Invoice Load (0.2ms)[0m [1mSELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = 1 AND "invoice_bar_invoices"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35mInvoiceBar::Address Load (0.1ms)[0m SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::Invoice' LIMIT 1
- [1m[36mInvoiceBar::Account Load (0.1ms)[0m [1mSELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = 1 AND "invoice_bar_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
- [1m[35mInvoiceBar::User Load (0.2ms)[0m SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = 1 LIMIT 1
- [1m[36mInvoiceBar::Address Load (0.1ms)[0m [1mSELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = 1 AND "invoice_bar_addresses"."addressable_type" = 'InvoiceBar::User' LIMIT 1[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/invoices/_address.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/invoices/_address.html.erb (0.1ms)
- [1m[35mInvoiceBar::Account Load (0.1ms)[0m SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = 1 LIMIT 1
- [1m[36mInvoiceBar::Item Load (0.2ms)[0m [1mSELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = 1 AND "invoice_bar_items"."itemable_type" = 'InvoiceBar::Invoice'[0m
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/invoices/_items.html.erb (2.7ms)
- [1m[35mInvoiceBar::Currency Load (0.1ms)[0m SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = 1 LIMIT 1
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 66ms (Views: 61.2ms | ActiveRecord: 1.1ms)
- [1m[36m (1.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mInvoiceBar::User Exists (0.2ms)[0m SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'king_okuneva@swaniawski.biz' LIMIT 1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "invoice_bar_users" ("administrator", "bill_number_format", "created_at", "crypted_password", "email", "ic", "invoice_number_format", "name", "next_bill_number", "next_invoice_number", "next_received_bill_number", "phone", "received_bill_number_format", "remember_me_token", "remember_me_token_expires_at", "reset_password_email_sent_at", "reset_password_token", "reset_password_token_expires_at", "salt", "updated_at", "web") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["administrator", nil], ["bill_number_format", "%Y%m%d%2"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["crypted_password", nil], ["email", "king_okuneva@swaniawski.biz"], ["ic", 778974], ["invoice_number_format", "%Y%m%d%2"], ["name", "Name 09"], ["next_bill_number", 1], ["next_invoice_number", 1], ["next_received_bill_number", 1], ["phone", nil], ["received_bill_number_format", "%Y%m%d%2"], ["remember_me_token", nil], ["remember_me_token_expires_at", nil], ["reset_password_email_sent_at", nil], ["reset_password_token", nil], ["reset_password_token_expires_at", nil], ["salt", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["web", nil]]
- [1m[35mSQL (0.2ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Currency Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc7' LIMIT 1[0m
- [1m[35mInvoiceBar::Currency Exists (0.1ms)[0m SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k7' LIMIT 1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "invoice_bar_currencies" ("name", "priority", "symbol") VALUES (?, ?, ?)[0m [["name", "kc7"], ["priority", 0], ["symbol", "k7"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = 'Name 19' AND "invoice_bar_accounts"."user_id" = 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_accounts" ("amount", "bank_account_number", "created_at", "currency_id", "iban", "name", "swift", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 0], ["bank_account_number", nil], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["currency_id", 1], ["iban", nil], ["name", "Name 19"], ["swift", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001128 AND "invoice_bar_invoices"."user_id" = 1
- [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "invoice_bar_invoices" ("account_id", "amount", "contact_dic", "contact_ic", "contact_name", "created_at", "due_date", "issue_date", "issuer", "number", "paid", "payment_identification_number", "sent", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["account_id", 1], ["amount", 1000], ["contact_dic", nil], ["contact_ic", 102939], ["contact_name", "Company"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["due_date", Mon, 07 Jan 2013], ["issue_date", Mon, 24 Dec 2012], ["issuer", true], ["number", 201001128], ["paid", false], ["payment_identification_number", nil], ["sent", false], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["user_id", 1]]
- [1m[35mSQL (0.3ms)[0m INSERT INTO "invoice_bar_addresses" ("addressable_id", "addressable_type", "city", "city_part", "created_at", "extra_address_line", "postcode", "street", "street_number", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice"], ["city", "City"], ["city_part", "Part"], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["extra_address_line", ""], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "invoice_bar_items" ("amount", "created_at", "itemable_id", "itemable_type", "name", "number", "price", "unit", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["amount", 1000], ["created_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["name", "Item"], ["number", nil], ["price", 1000], ["unit", nil], ["updated_at", Mon, 24 Dec 2012 13:07:44 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by InvoiceBar::InvoicesController#update as HTML
- Parameters: {"id"=>"1", "invoice"=>{"number"=>"201001128", "amount"=>"1000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "due_date"=>"2013-01-07", "issue_date"=>"2012-12-24", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}}
- [1m[36mInvoiceBar::Invoice Load (0.1ms)[0m [1mSELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."id" = ? LIMIT 1[0m [["id", "1"]]
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mInvoiceBar::Item Load (0.1ms)[0m [1mSELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = 1 AND "invoice_bar_items"."itemable_type" = 'InvoiceBar::Invoice'[0m
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001128 AND "invoice_bar_invoices"."user_id" = 1
- [1m[36mInvoiceBar::Invoice Load (0.1ms)[0m [1mSELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = 201001128 AND "invoice_bar_invoices"."user_id" = 1[0m
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/invoice_bar/invoices/1
-Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
- [1m[36m (1.5ms)[0m [1mrollback transaction[0m
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Processing by InvoiceBar::InvoiceTemplatesController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (5.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (41.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.6ms)
-Completed 200 OK in 219ms (Views: 191.0ms | ActiveRecord: 0.9ms)
-Processing by InvoiceBar::InvoiceTemplatesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 34ms (Views: 32.7ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::InvoiceTemplatesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (15.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 35ms (Views: 32.3ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::InvoiceTemplatesController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 28ms (Views: 22.9ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::InvoiceTemplatesController#update as HTML
- Parameters: {"id"=>"1", "invoice_template"=>{"account_id"=>"1", "amount"=>"0", "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Name 09", "payment_identification_number"=>nil, "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/invoice_templates/1
-Completed 302 Found in 72ms (ActiveRecord: 0.0ms)
-Connecting to database specified by database.yml
-Processing by InvoiceBar::InvoiceTemplatesController#create as HTML
- Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>nil, "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Name 19", "payment_identification_number"=>nil}}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (30.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (62.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/invoice_templates/new.html.erb within invoice_bar/layouts/signed_in (109.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (5.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.8ms)
-Completed 200 OK in 273ms (Views: 126.3ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::InvoiceTemplatesController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/invoice_templates
-Completed 302 Found in 29ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (3.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (16.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 85ms (Views: 22.1ms | ActiveRecord: 0.7ms)
-Processing by InvoiceBar::InvoiceTemplatesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 20ms (Views: 18.6ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::InvoiceTemplatesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (16.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 25ms (Views: 21.5ms | ActiveRecord: 0.4ms)
-Processing by InvoiceBar::InvoiceTemplatesController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 11ms (Views: 6.6ms | ActiveRecord: 0.4ms)
-Processing by InvoiceBar::InvoiceTemplatesController#update as HTML
- Parameters: {"id"=>"1", "invoice_template"=>{"account_id"=>"1", "amount"=>"0", "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Name 19", "payment_identification_number"=>nil, "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/invoice_templates/1
-Completed 302 Found in 13ms (ActiveRecord: 0.0ms)
-Connecting to database specified by database.yml
-Processing by InvoiceBar::InvoiceTemplatesController#create as HTML
- Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>nil, "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"jiny", "payment_identification_number"=>nil}}
-Redirected to http://test.host/invoice_bar/invoice_templates/2
-Completed 302 Found in 152ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/invoice_templates
-Completed 302 Found in 36ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (5.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (35.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (58.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.6ms)
-Completed 200 OK in 156ms (Views: 150.7ms | ActiveRecord: 0.7ms)
-Processing by InvoiceBar::InvoiceTemplatesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::InvoiceTemplatesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (13.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 23ms (Views: 19.4ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::InvoiceTemplatesController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 10ms (Views: 5.8ms | ActiveRecord: 0.4ms)
-Processing by InvoiceBar::InvoiceTemplatesController#update as HTML
- Parameters: {"id"=>"1", "invoice_template"=>{"account_id"=>"1", "amount"=>"0", "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Name 19", "payment_identification_number"=>nil, "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/invoice_templates/1
-Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
-Connecting to database specified by database.yml
-Processing by InvoiceBar::ReceiptTemplatesController#create as HTML
- Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>nil, "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (26.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (55.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/receipt_templates/new.html.erb within invoice_bar/layouts/signed_in (105.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.6ms)
-Completed 200 OK in 280ms (Views: 131.8ms | ActiveRecord: 0.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/show.html.erb within invoice_bar/layouts/signed_in (1.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.3ms)
+Completed 200 OK in 15ms (Views: 12.7ms | ActiveRecord: 0.1ms)
+--------------------------------------------------------------------------------
+InvoiceBar::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template
+--------------------------------------------------------------------------------
Processing by InvoiceBar::ReceiptTemplatesController#destroy as HTML
Parameters: {"id"=>"1"}
Redirected to http://test.host/invoice_bar/receipt_templates
-Completed 302 Found in 26ms (ActiveRecord: 0.0ms)
+Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
+----------------------------------------------------------------
+InvoiceBar::ReceiptTemplatesControllerTest: test_should_get_edit
+----------------------------------------------------------------
Processing by InvoiceBar::ReceiptTemplatesController#edit as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (59.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (70.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 93ms (Views: 89.0ms | ActiveRecord: 0.6ms)
-Processing by InvoiceBar::ReceiptTemplatesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 24ms (Views: 22.5ms | ActiveRecord: 0.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (13.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/edit.html.erb within invoice_bar/layouts/signed_in (14.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms)
+Completed 200 OK in 45ms (Views: 28.5ms | ActiveRecord: 1.7ms)
+---------------------------------------------------------------
+InvoiceBar::ReceiptTemplatesControllerTest: test_should_get_new
+---------------------------------------------------------------
Processing by InvoiceBar::ReceiptTemplatesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (11.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 20ms (Views: 16.4ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ReceiptTemplatesController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 24ms (Views: 20.7ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ReceiptTemplatesController#update as HTML
- Parameters: {"id"=>"1", "invoice_template"=>{"account_id"=>"1", "amount"=>"0", "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Name 19", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/receipt_templates/1
-Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
-Connecting to database specified by database.yml
-Processing by InvoiceBar::ReceiptTemplatesController#create as HTML
- Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>nil, "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (27.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (56.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/receipt_templates/new.html.erb within invoice_bar/layouts/signed_in (100.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.6ms)
-Completed 200 OK in 246ms (Views: 113.7ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ReceiptTemplatesController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/receipt_templates
-Completed 302 Found in 27ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (54.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (67.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 77ms (Views: 73.2ms | ActiveRecord: 0.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (4.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (5.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (5.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (25.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/new.html.erb within invoice_bar/layouts/signed_in (26.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 35ms (Views: 31.8ms | ActiveRecord: 0.3ms)
+-----------------------------------------------------------------
+InvoiceBar::ReceiptTemplatesControllerTest: test_should_get_index
+-----------------------------------------------------------------
Processing by InvoiceBar::ReceiptTemplatesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 17ms (Views: 15.3ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ReceiptTemplatesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (11.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 21ms (Views: 16.3ms | ActiveRecord: 0.4ms)
-Processing by InvoiceBar::ReceiptTemplatesController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 0.4ms)
-Processing by InvoiceBar::ReceiptTemplatesController#update as HTML
- Parameters: {"id"=>"1", "invoice_template"=>{"account_id"=>"1", "amount"=>"0", "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Name 09", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/receipt_templates/1
-Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
-Connecting to database specified by database.yml
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/index.html.erb within invoice_bar/layouts/signed_in (6.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.5ms)
+-------------------------------------------------------------------------------
+InvoiceBar::ReceiptTemplatesControllerTest: test_should_create_receipt_template
+-------------------------------------------------------------------------------
Processing by InvoiceBar::ReceiptTemplatesController#create as HTML
- Parameters: {"receipt_template"=>{"account_id"=>"1", "amount"=>nil, "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
+ Parameters: {"receipt_template"=>{"account_id"=>"1", "amount"=>nil, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
Redirected to http://test.host/invoice_bar/receipt_templates/2
-Completed 302 Found in 153ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/receipt_templates
-Completed 302 Found in 35ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (35.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.6ms)
-Completed 200 OK in 102ms (Views: 95.2ms | ActiveRecord: 0.7ms)
-Processing by InvoiceBar::ReceiptTemplatesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ReceiptTemplatesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (12.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 21ms (Views: 18.4ms | ActiveRecord: 0.3ms)
+Completed 302 Found in 28ms (ActiveRecord: 3.6ms)
+-----------------------------------------------------------------------------
+InvoiceBar::ReceiptTemplatesControllerTest: test_should_show_receipt_template
+-----------------------------------------------------------------------------
Processing by InvoiceBar::ReceiptTemplatesController#show as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 0.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (5.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (12.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/show.html.erb within invoice_bar/layouts/signed_in (13.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 21ms (Views: 16.5ms | ActiveRecord: 0.9ms)
+-------------------------------------------------------------------------------
+InvoiceBar::ReceiptTemplatesControllerTest: test_should_update_receipt_template
+-------------------------------------------------------------------------------
Processing by InvoiceBar::ReceiptTemplatesController#update as HTML
- Parameters: {"id"=>"1", "receipt_template"=>{"account_id"=>"1", "amount"=>"0", "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Name 09", "user_id"=>"1"}}
+ Parameters: {"receipt_template"=>{"account_id"=>"1", "amount"=>"0", "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Name 7", "user_id"=>"1"}, "id"=>"1"}
Redirected to http://test.host/invoice_bar/receipt_templates/1
-Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
-Connecting to database specified by database.yml
-Processing by InvoiceBar::ReceiptsController#destroy as HTML
+Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
+---------------------------------------------------------------
+InvoiceBar::ContactsControllerTest: test_should_destroy_contact
+---------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#destroy as HTML
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/receipts
-Completed 302 Found in 174ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptsController#edit as HTML
+Redirected to http://test.host/invoice_bar/contacts/1
+Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
+--------------------------------------------------------
+InvoiceBar::ContactsControllerTest: test_should_get_edit
+--------------------------------------------------------
+Processing by InvoiceBar::ContactsController#edit as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (29.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (57.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.9ms)
-Completed 200 OK in 160ms (Views: 157.3ms | ActiveRecord: 0.6ms)
-Processing by InvoiceBar::ReceiptsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 29ms (Views: 28.1ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ReceiptsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (11.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ReceiptsController#show as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (14.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/edit.html.erb within invoice_bar/layouts/signed_in (16.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (7.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 30ms (Views: 29.3ms | ActiveRecord: 0.2ms)
+---------------------------------------------------------
+InvoiceBar::ContactsControllerTest: test_should_get_index
+---------------------------------------------------------
+Processing by InvoiceBar::ContactsController#index as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/index.html.erb within invoice_bar/layouts/signed_in (11.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 21ms (Views: 16.6ms | ActiveRecord: 0.6ms)
+------------------------------------------------------------
+InvoiceBar::ContactsControllerTest: test_should_show_contact
+------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#show as HTML
Parameters: {"id"=>"1"}
-Completed 500 Internal Server Error in 15ms
-Connecting to database specified by database.yml
-Processing by InvoiceBar::ReceiptsController#create as HTML
- Parameters: {"receipt"=>{"number"=>"201001122", "amount"=>"1000000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "issue_date"=>"2012-12-24", "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/receipts/2
-Completed 302 Found in 151ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptsController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/receipts
-Completed 302 Found in 37ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptsController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (86.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.6ms)
-Completed 200 OK in 147ms (Views: 144.4ms | ActiveRecord: 0.6ms)
-Processing by InvoiceBar::ReceiptsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 24ms (Views: 22.3ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ReceiptsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (14.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 23ms (Views: 20.3ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ReceiptsController#show as HTML
- Parameters: {"id"=>"1"}
-Completed 500 Internal Server Error in 9ms
-Processing by InvoiceBar::ReceiptsController#update as HTML
- Parameters: {"id"=>"1", "receipt"=>{"number"=>"201001128", "amount"=>"1000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "issue_date"=>"2012-12-24", "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/receipts/1
-Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
- [1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (2.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
- [1m[36m (3.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
-Connecting to database specified by database.yml
- [1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
-Migrating to CreateInvoiceBarAddresses (20121012142346)
- [1m[35m (0.0ms)[0m select sqlite_version(*)
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.9ms)[0m CREATE TABLE "invoice_bar_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255) NOT NULL, "street_number" varchar(255) NOT NULL, "city" varchar(255) NOT NULL, "city_part" varchar(255), "postcode" varchar(255) NOT NULL, "extra_address_line" varchar(255), "addressable_id" integer NOT NULL, "addressable_type" varchar(255) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121012142346')[0m
- [1m[35m (5.4ms)[0m commit transaction
-Migrating to CreateInvoiceBarInvoiceTemplates (20121012142357)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m CREATE TABLE "invoice_bar_invoice_templates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "issue_date" date, "due_date" date, "contact_name" varchar(255), "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer, "payment_identification_number" integer, "account_id" integer, "amount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_invoice_bar_invoice_templates_on_name" ON "invoice_bar_invoice_templates" ("name")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142357')
- [1m[36m (2.4ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarInvoices (20121012142418)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.6ms)[0m [1mCREATE TABLE "invoice_bar_invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255) NOT NULL, "issue_date" date NOT NULL, "due_date" date NOT NULL, "contact_name" varchar(255) NOT NULL, "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer NOT NULL, "payment_identification_number" integer, "account_id" integer NOT NULL, "amount" integer NOT NULL, "sent" boolean DEFAULT 'f' NOT NULL, "paid" boolean DEFAULT 'f' NOT NULL, "issuer" boolean DEFAULT 't' NOT NULL, "receipt_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_invoices_on_number" ON "invoice_bar_invoices" ("number")
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_invoice_bar_invoices_on_contact_name" ON "invoice_bar_invoices" ("contact_name")[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_invoice_bar_invoices_on_contact_ic" ON "invoice_bar_invoices" ("contact_ic")
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_invoice_bar_invoices_on_payment_identification_number" ON "invoice_bar_invoices" ("payment_identification_number")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142418')
- [1m[36m (2.3ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarAccounts (20121012142428)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.7ms)[0m [1mCREATE TABLE "invoice_bar_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "user_id" integer NOT NULL, "bank_account_number" varchar(255), "iban" varchar(255), "swift" varchar(255), "amount" integer DEFAULT 0 NOT NULL, "currency_id" integer DEFAULT 1 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.3ms)[0m CREATE INDEX "index_invoice_bar_accounts_on_name" ON "invoice_bar_accounts" ("name")
- [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121012142428')[0m
- [1m[35m (2.0ms)[0m commit transaction
-Migrating to CreateInvoiceBarItems (20121012142442)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m CREATE TABLE "invoice_bar_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "price" integer NOT NULL, "unit" varchar(255), "number" integer, "amount" integer NOT NULL, "itemable_id" integer NOT NULL, "itemable_type" varchar(255) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_invoice_bar_items_on_name" ON "invoice_bar_items" ("name")[0m
- [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142442')
- [1m[36m (2.3ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarCurrencies (20121012142454)
- [1m[35m (0.4ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "invoice_bar_currencies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "symbol" varchar(255) NOT NULL, "priority" integer DEFAULT 1 NOT NULL) [0m
- [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142454')
- [1m[36m (2.7ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarContacts (20121012142502)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.6ms)[0m [1mCREATE TABLE "invoice_bar_contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "email" varchar(255), "phone" varchar(255), "web" varchar(255), "bank_account" varchar(255), "ic" integer, "dic" varchar(255), "user_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_contacts_on_name" ON "invoice_bar_contacts" ("name")
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_invoice_bar_contacts_on_ic" ON "invoice_bar_contacts" ("ic")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012142502')
- [1m[36m (4.6ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarUsers (20121012144941)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.7ms)[0m [1mCREATE TABLE "invoice_bar_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) NOT NULL, "crypted_password" varchar(255), "salt" varchar(255), "remember_me_token" varchar(255), "remember_me_token_expires_at" datetime, "reset_password_token" varchar(255), "reset_password_token_expires_at" datetime, "reset_password_email_sent_at" datetime, "name" varchar(255) NOT NULL, "phone" varchar(255), "web" varchar(255), "ic" integer NOT NULL, "administrator" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_invoice_bar_users_on_reset_password_token" ON "invoice_bar_users" ("reset_password_token")
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_invoice_bar_users_on_remember_me_token" ON "invoice_bar_users" ("remember_me_token")[0m
- [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121012144941')
- [1m[36m (3.7ms)[0m [1mcommit transaction[0m
-Migrating to CreateInvoiceBarReceipts (20121205185321)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (1.4ms)[0m [1mCREATE TABLE "invoice_bar_receipts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255) NOT NULL, "issue_date" date NOT NULL, "contact_name" varchar(255) NOT NULL, "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer NOT NULL, "account_id" integer NOT NULL, "amount" integer NOT NULL, "issuer" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
- [1m[35m (0.3ms)[0m CREATE INDEX "index_invoice_bar_receipts_on_number" ON "invoice_bar_receipts" ("number")
- [1m[36m (1.5ms)[0m [1mCREATE INDEX "index_invoice_bar_receipts_on_contact_name" ON "invoice_bar_receipts" ("contact_name")[0m
- [1m[35m (0.3ms)[0m CREATE INDEX "index_invoice_bar_receipts_on_contact_ic" ON "invoice_bar_receipts" ("contact_ic")
- [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121205185321')[0m
- [1m[35m (2.7ms)[0m commit transaction
-Migrating to CreateInvoiceBarReceiptTemplates (20121205185353)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.6ms)[0m CREATE TABLE "invoice_bar_receipt_templates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "issue_date" date, "contact_name" varchar(255), "contact_ic" integer, "contact_dic" varchar(255), "user_id" integer, "account_id" integer, "amount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
- [1m[36m (0.3ms)[0m [1mCREATE INDEX "index_invoice_bar_receipt_templates_on_name" ON "invoice_bar_receipt_templates" ("name")[0m
- [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121205185353')
- [1m[36m (2.6ms)[0m [1mcommit transaction[0m
- [1m[35m (0.2ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
-Connecting to database specified by database.yml
- [1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Connecting to database specified by database.yml
-Processing by InvoiceBar::UsersController#create as HTML
- Parameters: {"user"=>{"name"=>"Name 19", "email"=>"frances@sawayn.biz", "ic"=>"278974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/login
-Completed 302 Found in 35ms (ActiveRecord: 1.3ms)
-Processing by InvoiceBar::UsersController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 28ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#index as HTML
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/users/_form.html.erb (37.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.7ms)
-Completed 200 OK in 236ms (Views: 234.2ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::UsersController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::UsersController#update as HTML
- Parameters: {"id"=>"1", "user"=>{"name"=>"Name 09", "email"=>"vern@fritsch.biz", "ic"=>"878974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Completed 500 Internal Server Error in 1ms
-Connecting to database specified by database.yml
-Processing by InvoiceBar::UsersController#create as HTML
- Parameters: {"user"=>{"name"=>"Name 19", "email"=>"aunta.rutherford@dibbertondricka.net", "ic"=>"278974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/login
-Completed 302 Found in 35ms (ActiveRecord: 1.3ms)
-Processing by InvoiceBar::UsersController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 24ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#index as HTML
-Redirected to http://test.host/invoice_bar/login
-Filter chain halted as :require_admin_rights rendered or redirected
-Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/users/_form.html.erb (10.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 144ms (Views: 141.9ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::UsersController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 34ms (Views: 31.5ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::UsersController#update as HTML
- Parameters: {"id"=>"1", "user"=>{"name"=>"Name 19", "email"=>"javonte_daugherty@fahey.name", "ic"=>"778974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Completed 500 Internal Server Error in 1ms
-Connecting to database specified by database.yml
-Processing by InvoiceBar::UsersController#create as HTML
- Parameters: {"user"=>{"name"=>"Name 09", "email"=>"evan@brakusmayert.name", "ic"=>"278974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/login
-Completed 302 Found in 36ms (ActiveRecord: 1.4ms)
-Processing by InvoiceBar::UsersController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/users
-Completed 302 Found in 236ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (1.2ms)
-Completed 200 OK in 109ms (Views: 107.2ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::UsersController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/users/_form.html.erb (9.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (57.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 78ms (Views: 76.2ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::UsersController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::UsersController#update as HTML
- Parameters: {"id"=>"1", "user"=>{"name"=>"Name 19", "email"=>"noel.gutkowski@harvey.org", "ic"=>"778974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/profile
-Completed 302 Found in 17ms (ActiveRecord: 1.5ms)
-Connecting to database specified by database.yml
-Processing by InvoiceBar::AccountsController#create as HTML
- Parameters: {"account"=>{"name"=>"Account", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"2", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/accounts/2
-Completed 302 Found in 243ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/accounts
-Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (8.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.6ms)
-Completed 200 OK in 100ms (Views: 96.9ms | ActiveRecord: 0.4ms)
-Processing by InvoiceBar::AccountsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 30ms (Views: 29.2ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::AccountsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (5.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 17ms (Views: 15.1ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::AccountsController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 52ms (Views: 50.2ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::AccountsController#update as HTML
- Parameters: {"id"=>"1", "account"=>{"name"=>"Name 19", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/accounts/1
-Completed 302 Found in 24ms (ActiveRecord: 0.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/show.html.erb within invoice_bar/layouts/signed_in (2.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms)
+-------------------------------------------------------
+InvoiceBar::ContactsControllerTest: test_should_get_new
+-------------------------------------------------------
+Processing by InvoiceBar::ContactsController#new as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (3.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (6.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/new.html.erb within invoice_bar/layouts/signed_in (7.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (4.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 17ms (Views: 15.6ms | ActiveRecord: 0.0ms)
+--------------------------------------------------------------
+InvoiceBar::ContactsControllerTest: test_should_create_contact
+--------------------------------------------------------------
Processing by InvoiceBar::ContactsController#create as HTML
Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (11.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 80ms (Views: 64.8ms | ActiveRecord: 0.0ms)
+Unpermitted parameters: ic, dic
+Redirected to http://test.host/invoice_bar/contacts/2
+Completed 302 Found in 12ms (ActiveRecord: 1.1ms)
+--------------------------------------------------------------
+InvoiceBar::ContactsControllerTest: test_should_update_contact
+--------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#update as HTML
+ Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}, "id"=>"1"}
+Unpermitted parameters: ic, dic
+Redirected to http://test.host/invoice_bar/contacts/1
+Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+---------------------------------------------------------------
+InvoiceBar::ContactsControllerTest: test_should_destroy_contact
+---------------------------------------------------------------
Processing by InvoiceBar::ContactsController#destroy as HTML
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/contacts
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
+Redirected to http://test.host/invoice_bar/contacts/1
+Completed 302 Found in 30ms (ActiveRecord: 1.6ms)
+-------------------------------------------------------
+InvoiceBar::ContactsControllerTest: test_should_get_new
+-------------------------------------------------------
+Processing by InvoiceBar::ContactsController#new as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (28.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/new.html.erb within invoice_bar/layouts/signed_in (44.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (172.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.7ms)
+Completed 200 OK in 237ms (Views: 235.7ms | ActiveRecord: 0.0ms)
+---------------------------------------------------------
+InvoiceBar::ContactsControllerTest: test_should_get_index
+---------------------------------------------------------
+Processing by InvoiceBar::ContactsController#index as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/index.html.erb within invoice_bar/layouts/signed_in (8.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.7ms)
+Completed 200 OK in 20ms (Views: 17.6ms | ActiveRecord: 0.4ms)
+--------------------------------------------------------
+InvoiceBar::ContactsControllerTest: test_should_get_edit
+--------------------------------------------------------
Processing by InvoiceBar::ContactsController#edit as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (5.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 30ms (Views: 28.5ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::ContactsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 41ms (Views: 39.7ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ContactsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 17ms (Views: 14.7ms | ActiveRecord: 0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (12.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/edit.html.erb within invoice_bar/layouts/signed_in (13.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 24ms (Views: 21.5ms | ActiveRecord: 0.4ms)
+------------------------------------------------------------
+InvoiceBar::ContactsControllerTest: test_should_show_contact
+------------------------------------------------------------
Processing by InvoiceBar::ContactsController#show as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 26ms (Views: 24.3ms | ActiveRecord: 0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/show.html.erb within invoice_bar/layouts/signed_in (3.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 9.0ms | ActiveRecord: 0.4ms)
+--------------------------------------------------------------
+InvoiceBar::ContactsControllerTest: test_should_update_contact
+--------------------------------------------------------------
Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
+ Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}, "id"=>"1"}
Redirected to http://test.host/invoice_bar/contacts/1
-Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#create as HTML
- Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>"0"}}
-Redirected to http://test.host/invoice_bar/currencies/2
-Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#destroy as HTML
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+--------------------------------------------------------------
+InvoiceBar::ContactsControllerTest: test_should_create_contact
+--------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#create as HTML
+ Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
+Redirected to http://test.host/invoice_bar/contacts/2
+Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
+--------------------------------------------------------------------------------
+InvoiceBar::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template
+--------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#destroy as HTML
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/currencies
-Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#edit as HTML
+Redirected to http://test.host/invoice_bar/receipt_templates
+Completed 302 Found in 20ms (ActiveRecord: 2.4ms)
+-----------------------------------------------------------------------------
+InvoiceBar::ReceiptTemplatesControllerTest: test_should_show_receipt_template
+-----------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#show as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (4.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 50ms (Views: 48.1ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::CurrenciesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 48ms (Views: 47.2ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::CurrenciesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 42ms (Views: 41.4ms | ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::CurrenciesController#update as HTML
- Parameters: {"id"=>"1", "currency"=>{"name"=>"kc18", "symbol"=>"k18", "priority"=>"0"}}
-Redirected to http://test.host/invoice_bar/currencies/1
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#create as HTML
- Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>nil, "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}}
-Redirected to http://test.host/invoice_bar/invoice_templates/2
-Completed 302 Found in 16ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/invoice_templates
-Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (64.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 97ms (Views: 91.4ms | ActiveRecord: 0.8ms)
-Processing by InvoiceBar::InvoiceTemplatesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms)
-Completed 200 OK in 18ms (Views: 16.0ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::InvoiceTemplatesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (86.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 113ms (Views: 108.8ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::InvoiceTemplatesController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (3.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (43.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 82ms (Views: 78.3ms | ActiveRecord: 1.1ms)
-Processing by InvoiceBar::InvoiceTemplatesController#update as HTML
- Parameters: {"id"=>"1", "invoice_template"=>{"account_id"=>"1", "amount"=>"0", "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Name 19", "payment_identification_number"=>nil, "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/invoice_templates/1
-Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoicesController#create as HTML
- Parameters: {"invoice"=>{"number"=>"201001127", "amount"=>"1000000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "due_date"=>"2013-01-14", "issue_date"=>"2012-12-31", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/invoices/2
-Completed 302 Found in 16ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoicesController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/invoices
-Completed 302 Found in 15ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoicesController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (11.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (32.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 60ms (Views: 56.4ms | ActiveRecord: 1.0ms)
-Processing by InvoiceBar::InvoicesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 45ms (Views: 43.0ms | ActiveRecord: 0.6ms)
-Processing by InvoiceBar::InvoicesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (15.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 42ms (Views: 34.5ms | ActiveRecord: 0.8ms)
-Processing by InvoiceBar::InvoicesController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (10.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 26ms (Views: 18.3ms | ActiveRecord: 1.2ms)
-Processing by InvoiceBar::InvoicesController#update as HTML
- Parameters: {"id"=>"1", "invoice"=>{"number"=>"2010011213", "amount"=>"1000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "due_date"=>"2013-01-14", "issue_date"=>"2012-12-31", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/invoices/1
-Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (2.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (24.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/show.html.erb within invoice_bar/layouts/signed_in (27.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 49ms (Views: 38.1ms | ActiveRecord: 3.3ms)
+-------------------------------------------------------------------------------
+InvoiceBar::ReceiptTemplatesControllerTest: test_should_update_receipt_template
+-------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#update as HTML
+ Parameters: {"receipt_template"=>{"account_id"=>"1", "amount"=>"0", "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Name 3", "user_id"=>"1"}, "id"=>"1"}
+Redirected to http://test.host/invoice_bar/receipt_templates/1
+Completed 302 Found in 26ms (ActiveRecord: 1.3ms)
+-------------------------------------------------------------------------------
+InvoiceBar::ReceiptTemplatesControllerTest: test_should_create_receipt_template
+-------------------------------------------------------------------------------
Processing by InvoiceBar::ReceiptTemplatesController#create as HTML
- Parameters: {"receipt_template"=>{"account_id"=>"1", "amount"=>nil, "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
+ Parameters: {"receipt_template"=>{"account_id"=>"1", "amount"=>nil, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
Redirected to http://test.host/invoice_bar/receipt_templates/2
-Completed 302 Found in 16ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/receipt_templates
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
+Completed 302 Found in 12ms (ActiveRecord: 1.3ms)
+----------------------------------------------------------------
+InvoiceBar::ReceiptTemplatesControllerTest: test_should_get_edit
+----------------------------------------------------------------
Processing by InvoiceBar::ReceiptTemplatesController#edit as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (12.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 66ms (Views: 59.4ms | ActiveRecord: 0.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (8.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (3.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (21.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (6.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (72.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/edit.html.erb within invoice_bar/layouts/signed_in (76.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 90ms (Views: 84.9ms | ActiveRecord: 0.6ms)
+-----------------------------------------------------------------
+InvoiceBar::ReceiptTemplatesControllerTest: test_should_get_index
+-----------------------------------------------------------------
Processing by InvoiceBar::ReceiptTemplatesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 29ms (Views: 27.0ms | ActiveRecord: 0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/index.html.erb within invoice_bar/layouts/signed_in (16.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 28ms (Views: 20.9ms | ActiveRecord: 1.4ms)
+---------------------------------------------------------------
+InvoiceBar::ReceiptTemplatesControllerTest: test_should_get_new
+---------------------------------------------------------------
Processing by InvoiceBar::ReceiptTemplatesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (15.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 40ms (Views: 36.5ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::ReceiptTemplatesController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (7.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 33ms (Views: 28.4ms | ActiveRecord: 0.9ms)
-Processing by InvoiceBar::ReceiptTemplatesController#update as HTML
- Parameters: {"id"=>"1", "receipt_template"=>{"account_id"=>"1", "amount"=>"0", "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Name 19", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/receipt_templates/1
-Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (4.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/new.html.erb within invoice_bar/layouts/signed_in (20.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (8.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.3ms)
+Completed 200 OK in 47ms (Views: 35.7ms | ActiveRecord: 0.6ms)
+--------------------------------------------------------------
+InvoiceBar::ReceiptsControllerTest: test_should_create_receipt
+--------------------------------------------------------------
Processing by InvoiceBar::ReceiptsController#create as HTML
- Parameters: {"receipt"=>{"number"=>"2010011218", "amount"=>"1000000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "issue_date"=>"2012-12-31", "account_id"=>"1", "user_id"=>"1"}}
+ Parameters: {"receipt"=>{"number"=>"201001122", "amount"=>"1000000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "issue_date"=>"2016-07-08", "account_id"=>"1", "user_id"=>"1", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
Redirected to http://test.host/invoice_bar/receipts/2
-Completed 302 Found in 18ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptsController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/receipts
-Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptsController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 44ms (Views: 40.7ms | ActiveRecord: 0.9ms)
-Processing by InvoiceBar::ReceiptsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 39ms (Views: 36.8ms | ActiveRecord: 0.7ms)
-Processing by InvoiceBar::ReceiptsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 42ms (Views: 35.0ms | ActiveRecord: 1.1ms)
+Completed 302 Found in 36ms (ActiveRecord: 2.6ms)
+------------------------------------------------------------
+InvoiceBar::ReceiptsControllerTest: test_should_show_receipt
+------------------------------------------------------------
Processing by InvoiceBar::ReceiptsController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (9.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 30ms (Views: 25.2ms | ActiveRecord: 1.0ms)
+ Parameters: {"number"=>"201001123"}
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (14.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/show.html.erb within invoice_bar/layouts/signed_in (16.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 36ms (Views: 22.1ms | ActiveRecord: 1.6ms)
+---------------------------------------------------------
+InvoiceBar::ReceiptsControllerTest: test_should_get_index
+---------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#index as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (2.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/index.html.erb within invoice_bar/layouts/signed_in (29.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 39ms (Views: 35.8ms | ActiveRecord: 1.4ms)
+--------------------------------------------------------------
+InvoiceBar::ReceiptsControllerTest: test_should_update_receipt
+--------------------------------------------------------------
Processing by InvoiceBar::ReceiptsController#update as HTML
- Parameters: {"id"=>"1", "receipt"=>{"number"=>"2010011224", "amount"=>"1000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "issue_date"=>"2012-12-31", "account_id"=>"1", "user_id"=>"1"}}
+ Parameters: {"receipt"=>{"number"=>"201001125", "amount"=>"1000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "issue_date"=>"2016-07-08", "account_id"=>"1", "user_id"=>"1"}, "number"=>"201001125"}
Redirected to http://test.host/invoice_bar/receipts/1
-Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#create as HTML
- Parameters: {"user"=>{"name"=>"Name 19", "email"=>"sherman@dietrich.net", "ic"=>"8478974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/login
-Completed 302 Found in 11ms (ActiveRecord: 1.6ms)
+Completed 302 Found in 25ms (ActiveRecord: 1.7ms)
+---------------------------------------------------------------
+InvoiceBar::ReceiptsControllerTest: test_should_destroy_receipt
+---------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#destroy as HTML
+ Parameters: {"number"=>"201001126"}
+Redirected to http://test.host/invoice_bar/receipts/201001126
+Completed 302 Found in 24ms (ActiveRecord: 3.5ms)
+--------------------------------------------------------
+InvoiceBar::ReceiptsControllerTest: test_should_get_edit
+--------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#edit as HTML
+ Parameters: {"number"=>"201001127"}
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (6.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (4.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (4.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (42.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/edit.html.erb within invoice_bar/layouts/signed_in (43.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.4ms)
+Completed 200 OK in 59ms (Views: 53.2ms | ActiveRecord: 1.4ms)
+-------------------------------------------------------
+InvoiceBar::ReceiptsControllerTest: test_should_get_new
+-------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#new as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (4.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (3.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (25.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/new.html.erb within invoice_bar/layouts/signed_in (26.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 50ms (Views: 31.7ms | ActiveRecord: 1.6ms)
+--------------------------------------------------------------
+InvoiceBar::InvoicesControllerTest: test_should_create_invoice
+--------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#create as HTML
+ Parameters: {"invoice"=>{"number"=>"2010011210", "amount"=>"1000000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "due_date"=>"2016-07-22", "issue_date"=>"2016-07-08", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
+Redirected to http://test.host/invoice_bar/invoices/2
+Completed 302 Found in 54ms (ActiveRecord: 3.0ms)
+---------------------------------------------------------------
+InvoiceBar::InvoicesControllerTest: test_should_destroy_invoice
+---------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#destroy as HTML
+ Parameters: {"number"=>"2010011211"}
+Redirected to http://test.host/invoice_bar/invoices/2010011211
+Completed 302 Found in 16ms (ActiveRecord: 2.3ms)
+---------------------------------------------------------
+InvoiceBar::InvoicesControllerTest: test_should_get_index
+---------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#index as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (51.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 65ms (Views: 55.9ms | ActiveRecord: 3.5ms)
+------------------------------------------------------------
+InvoiceBar::InvoicesControllerTest: test_should_show_invoice
+------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#show as HTML
+ Parameters: {"number"=>"2010011213"}
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (7.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (7.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (11.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 29ms (Views: 22.7ms | ActiveRecord: 0.7ms)
+--------------------------------------------------------
+InvoiceBar::InvoicesControllerTest: test_should_get_edit
+--------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#edit as HTML
+ Parameters: {"number"=>"2010011214"}
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (5.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (28.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (29.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 40ms (Views: 34.1ms | ActiveRecord: 1.3ms)
+-------------------------------------------------------
+InvoiceBar::InvoicesControllerTest: test_should_get_new
+-------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#new as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (14.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (16.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 36ms (Views: 21.4ms | ActiveRecord: 1.0ms)
+--------------------------------------------------------------
+InvoiceBar::InvoicesControllerTest: test_should_update_invoice
+--------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#update as HTML
+ Parameters: {"invoice"=>{"number"=>"2010011216", "amount"=>"1000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "due_date"=>"2016-07-22", "issue_date"=>"2016-07-08", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}, "number"=>"2010011216"}
+Redirected to http://test.host/invoice_bar/invoices/1
+Completed 302 Found in 18ms (ActiveRecord: 1.7ms)
+------------------------------------------------------
+InvoiceBar::UsersControllerTest: test_should_get_index
+------------------------------------------------------
+Processing by InvoiceBar::UsersController#index as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/index.html.erb within invoice_bar/layouts/signed_in (6.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 16ms (Views: 15.0ms | ActiveRecord: 0.3ms)
+---------------------------------------------------------
+InvoiceBar::UsersControllerTest: test_should_destroy_user
+---------------------------------------------------------
Processing by InvoiceBar::UsersController#destroy as HTML
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/users
-Completed 302 Found in 20ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 13ms (Views: 11.2ms | ActiveRecord: 0.3ms)
+Redirected to http://test.host/invoice_bar/users/1
+Completed 302 Found in 15ms (ActiveRecord: 2.4ms)
+----------------------------------------------------
+InvoiceBar::UsersControllerTest: test_should_get_new
+----------------------------------------------------
Processing by InvoiceBar::UsersController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/users/_form.html.erb (5.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 18ms (Views: 15.7ms | ActiveRecord: 0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/_form.html.erb (15.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/new.html.erb within invoice_bar/layouts/signed_out (17.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 31ms (Views: 29.9ms | ActiveRecord: 0.0ms)
+--------------------------------------------------------
+InvoiceBar::UsersControllerTest: test_should_update_user
+--------------------------------------------------------
+Processing by InvoiceBar::UsersController#update as HTML
+ Parameters: {"user"=>{"name"=>"Name 32", "email"=>"nova.oberbrunner@monahanbernhard.org", "tax_id"=>"3278974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"}
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (7.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (7.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/settings/index.html.erb within invoice_bar/layouts/signed_in (22.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 51ms (Views: 28.4ms | ActiveRecord: 1.2ms)
+--------------------------------------------------------
+InvoiceBar::UsersControllerTest: test_should_create_user
+--------------------------------------------------------
+Processing by InvoiceBar::UsersController#create as HTML
+ Parameters: {"user"=>{"name"=>"Name 34", "email"=>"ivory_macgyver@parkerbaumbach.org", "tax_id"=>"3478974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
+Redirected to http://test.host/invoice_bar/login
+Completed 302 Found in 15ms (ActiveRecord: 1.2ms)
+------------------------------------------------------
+InvoiceBar::UsersControllerTest: test_should_show_user
+------------------------------------------------------
Processing by InvoiceBar::UsersController#show as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::UsersController#update as HTML
- Parameters: {"id"=>"1", "user"=>{"name"=>"Name 19", "email"=>"madyson@greenmosciski.biz", "ic"=>"8978974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/profile
-Completed 302 Found in 14ms (ActiveRecord: 1.4ms)
-Connecting to database specified by database.yml
-Processing by InvoiceBar::AccountsController#create as HTML
- Parameters: {"account"=>{"name"=>"Account", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"2", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/accounts/2
-Completed 302 Found in 236ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#destroy as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/show.html.erb within invoice_bar/layouts/signed_out (2.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.1ms)
+--------------------------------------------------------------------------------
+InvoiceBar::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template
+--------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#destroy as HTML
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/accounts
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#edit as HTML
+Redirected to http://test.host/invoice_bar/invoice_templates
+Completed 302 Found in 13ms (ActiveRecord: 1.3ms)
+-----------------------------------------------------------------
+InvoiceBar::InvoiceTemplatesControllerTest: test_should_get_index
+-----------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#index as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/index.html.erb within invoice_bar/layouts/signed_in (7.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.9ms)
+Completed 200 OK in 16ms (Views: 13.8ms | ActiveRecord: 0.5ms)
+-----------------------------------------------------------------------------
+InvoiceBar::InvoiceTemplatesControllerTest: test_should_show_invoice_template
+-----------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#show as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (7.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.6ms)
-Completed 200 OK in 71ms (Views: 68.4ms | ActiveRecord: 0.4ms)
-Processing by InvoiceBar::AccountsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::AccountsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (5.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 0.4ms)
-Processing by InvoiceBar::AccountsController#show as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (4.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/show.html.erb within invoice_bar/layouts/signed_in (4.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 0.4ms)
+---------------------------------------------------------------
+InvoiceBar::InvoiceTemplatesControllerTest: test_should_get_new
+---------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#new as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (15.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/new.html.erb within invoice_bar/layouts/signed_in (16.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 30ms (Views: 20.7ms | ActiveRecord: 0.3ms)
+----------------------------------------------------------------
+InvoiceBar::InvoiceTemplatesControllerTest: test_should_get_edit
+----------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#edit as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 38ms (Views: 36.5ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::AccountsController#update as HTML
- Parameters: {"id"=>"1", "account"=>{"name"=>"Name 19", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/accounts/1
-Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (3.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (13.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (4.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 39ms (Views: 23.7ms | ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ContactsController#destroy as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (4.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (16.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/edit.html.erb within invoice_bar/layouts/signed_in (17.3ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms)
+Completed 200 OK in 30ms (Views: 23.5ms | ActiveRecord: 0.8ms)
+-------------------------------------------------------------------------------
+InvoiceBar::InvoiceTemplatesControllerTest: test_should_update_invoice_template
+-------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#update as HTML
+ Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>"0", "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Name 6", "payment_identification_number"=>nil, "user_id"=>"1"}, "id"=>"1"}
+Redirected to http://test.host/invoice_bar/invoice_templates/1
+Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
+-------------------------------------------------------------------------------
+InvoiceBar::InvoiceTemplatesControllerTest: test_should_create_invoice_template
+-------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#create as HTML
+ Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>nil, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}}
+Redirected to http://test.host/invoice_bar/invoice_templates/2
+Completed 302 Found in 17ms (ActiveRecord: 1.5ms)
+-----------------------------------------------------------------
+InvoiceBar::CurrenciesControllerTest: test_should_update_currency
+-----------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#update as HTML
+ Parameters: {"currency"=>{"name"=>"kc29", "symbol"=>"k29", "priority"=>"0"}, "id"=>"1"}
+Redirected to http://test.host/invoice_bar/currencies/1
+Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
+---------------------------------------------------------------
+InvoiceBar::CurrenciesControllerTest: test_should_show_currency
+---------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#show as HTML
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/contacts
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ContactsController#edit as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/show.html.erb within invoice_bar/layouts/signed_in (1.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms)
+---------------------------------------------------------
+InvoiceBar::CurrenciesControllerTest: test_should_get_new
+---------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#new as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (2.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/new.html.erb within invoice_bar/layouts/signed_in (5.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
+Completed 200 OK in 18ms (Views: 16.9ms | ActiveRecord: 0.0ms)
+----------------------------------------------------------
+InvoiceBar::CurrenciesControllerTest: test_should_get_edit
+----------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#edit as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (5.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ContactsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 18ms (Views: 15.7ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ContactsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 16ms (Views: 13.5ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::ContactsController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/contacts/1
-Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (4.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/edit.html.erb within invoice_bar/layouts/signed_in (5.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.7ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms)
+Completed 200 OK in 20ms (Views: 19.2ms | ActiveRecord: 0.2ms)
+-----------------------------------------------------------
+InvoiceBar::CurrenciesControllerTest: test_should_get_index
+-----------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#index as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/index.html.erb within invoice_bar/layouts/signed_in (7.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.0ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.4ms)
+-----------------------------------------------------------------
+InvoiceBar::CurrenciesControllerTest: test_should_create_currency
+-----------------------------------------------------------------
Processing by InvoiceBar::CurrenciesController#create as HTML
Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>"0"}}
Redirected to http://test.host/invoice_bar/currencies/2
-Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
+Completed 302 Found in 9ms (ActiveRecord: 1.1ms)
+------------------------------------------------------------------
+InvoiceBar::CurrenciesControllerTest: test_should_destroy_currency
+------------------------------------------------------------------
Processing by InvoiceBar::CurrenciesController#destroy as HTML
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/currencies
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (3.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 16ms (Views: 12.9ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::CurrenciesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::CurrenciesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (3.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::CurrenciesController#update as HTML
- Parameters: {"id"=>"1", "currency"=>{"name"=>"kc18", "symbol"=>"k18", "priority"=>"0"}}
Redirected to http://test.host/invoice_bar/currencies/1
-Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#create as HTML
- Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>nil, "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}}
-Redirected to http://test.host/invoice_bar/invoice_templates/2
-Completed 302 Found in 15ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#destroy as HTML
+Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
+---------------------------------------------------------
+InvoiceBar::AccountsControllerTest: test_should_get_index
+---------------------------------------------------------
+Processing by InvoiceBar::AccountsController#index as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/index.html.erb within invoice_bar/layouts/signed_in (7.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.8ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 1.1ms)
+-------------------------------------------------------
+InvoiceBar::AccountsControllerTest: test_should_get_new
+-------------------------------------------------------
+Processing by InvoiceBar::AccountsController#new as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (13.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/new.html.erb within invoice_bar/layouts/signed_in (15.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 21ms (Views: 18.3ms | ActiveRecord: 0.7ms)
+--------------------------------------------------------
+InvoiceBar::AccountsControllerTest: test_should_get_edit
+--------------------------------------------------------
+Processing by InvoiceBar::AccountsController#edit as HTML
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/invoice_templates
-Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#edit as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (6.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/edit.html.erb within invoice_bar/layouts/signed_in (8.1ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
+Completed 200 OK in 16ms (Views: 13.9ms | ActiveRecord: 0.6ms)
+---------------------------------------------------------------
+InvoiceBar::AccountsControllerTest: test_should_destroy_account
+---------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#destroy as HTML
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (4.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (34.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 49ms (Views: 42.8ms | ActiveRecord: 1.1ms)
-Processing by InvoiceBar::InvoiceTemplatesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 17ms (Views: 13.8ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::InvoiceTemplatesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (5.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (86.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 97ms (Views: 93.1ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::InvoiceTemplatesController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (17.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 29ms (Views: 25.6ms | ActiveRecord: 1.1ms)
-Processing by InvoiceBar::InvoiceTemplatesController#update as HTML
- Parameters: {"id"=>"1", "invoice_template"=>{"account_id"=>"1", "amount"=>"0", "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Name 09", "payment_identification_number"=>nil, "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/invoice_templates/1
-Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoicesController#create as HTML
- Parameters: {"invoice"=>{"number"=>"201001127", "amount"=>"1000000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "due_date"=>"2013-01-14", "issue_date"=>"2012-12-31", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/invoices/2
-Completed 302 Found in 16ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoicesController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/invoices
-Completed 302 Found in 15ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoicesController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (19.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 30ms (Views: 25.7ms | ActiveRecord: 1.3ms)
-Processing by InvoiceBar::InvoicesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (3.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 29ms (Views: 27.6ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::InvoicesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (15.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 29ms (Views: 21.1ms | ActiveRecord: 0.8ms)
-Processing by InvoiceBar::InvoicesController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (10.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 22ms (Views: 17.4ms | ActiveRecord: 1.2ms)
-Processing by InvoiceBar::InvoicesController#update as HTML
- Parameters: {"id"=>"1", "invoice"=>{"number"=>"2010011213", "amount"=>"1000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "due_date"=>"2013-01-14", "issue_date"=>"2012-12-31", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/invoices/1
-Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#create as HTML
- Parameters: {"receipt_template"=>{"account_id"=>"1", "amount"=>nil, "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
-Redirected to http://test.host/invoice_bar/receipt_templates/2
-Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/receipt_templates
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (13.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 25ms (Views: 20.2ms | ActiveRecord: 0.8ms)
-Processing by InvoiceBar::ReceiptTemplatesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 0.4ms)
-Processing by InvoiceBar::ReceiptTemplatesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (14.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 26ms (Views: 22.1ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::ReceiptTemplatesController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (8.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 19ms (Views: 15.3ms | ActiveRecord: 1.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#update as HTML
- Parameters: {"id"=>"1", "receipt_template"=>{"account_id"=>"1", "amount"=>"0", "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Name 19", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/receipt_templates/1
-Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptsController#create as HTML
- Parameters: {"receipt"=>{"number"=>"2010011218", "amount"=>"1000000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "issue_date"=>"2012-12-31", "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/receipts/2
-Completed 302 Found in 19ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptsController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/receipts
-Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptsController#edit as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (20.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 31ms (Views: 27.3ms | ActiveRecord: 0.9ms)
-Processing by InvoiceBar::ReceiptsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 24ms (Views: 22.0ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::ReceiptsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 31ms (Views: 24.0ms | ActiveRecord: 0.9ms)
-Processing by InvoiceBar::ReceiptsController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (9.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 23ms (Views: 15.3ms | ActiveRecord: 1.4ms)
-Processing by InvoiceBar::ReceiptsController#update as HTML
- Parameters: {"id"=>"1", "receipt"=>{"number"=>"2010011224", "amount"=>"1000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "issue_date"=>"2012-12-31", "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/receipts/1
-Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#create as HTML
- Parameters: {"user"=>{"name"=>"Name 19", "email"=>"earline_runte@hickle.com", "ic"=>"8478974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/login
-Completed 302 Found in 9ms (ActiveRecord: 1.3ms)
-Processing by InvoiceBar::UsersController#destroy as HTML
- Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/users
-Completed 302 Found in 15ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms)
-Completed 200 OK in 15ms (Views: 12.8ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::UsersController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/users/_form.html.erb (7.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 21ms (Views: 19.3ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::UsersController#show as HTML
- Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::UsersController#update as HTML
- Parameters: {"id"=>"1", "user"=>{"name"=>"Name 19", "email"=>"dana.halvorson@block.name", "ic"=>"8978974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/profile
-Completed 302 Found in 15ms (ActiveRecord: 1.4ms)
-Connecting to database specified by database.yml
+Redirected to http://test.host/invoice_bar/accounts/1
+Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
+--------------------------------------------------------------
+InvoiceBar::AccountsControllerTest: test_should_create_account
+--------------------------------------------------------------
Processing by InvoiceBar::AccountsController#create as HTML
Parameters: {"account"=>{"name"=>"Account", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"2", "user_id"=>"1"}}
Redirected to http://test.host/invoice_bar/accounts/2
-Completed 302 Found in 237ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#destroy as HTML
+Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
+--------------------------------------------------------------
+InvoiceBar::AccountsControllerTest: test_should_update_account
+--------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#update as HTML
+ Parameters: {"account"=>{"name"=>"Name 34", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}, "id"=>"1"}
+Redirected to http://test.host/invoice_bar/accounts/1
+Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
+------------------------------------------------------------
+InvoiceBar::AccountsControllerTest: test_should_show_account
+------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#show as HTML
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/accounts
-Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#edit as HTML
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/show.html.erb within invoice_bar/layouts/signed_in (2.6ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (7.2ms)
+ Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.3ms)
+Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.2ms)
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_get_index
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#index as JSON
+Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.5ms)
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_show_user
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#show as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (7.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms)
-Completed 200 OK in 72ms (Views: 69.3ms | ActiveRecord: 0.4ms)
-Processing by InvoiceBar::AccountsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::AccountsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (5.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 0.4ms)
-Processing by InvoiceBar::AccountsController#show as HTML
+Completed 200 OK in 17ms (Views: 1.0ms | ActiveRecord: 0.4ms)
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_update_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#update as JSON
+ Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "tax_id"=>378974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"}
+Completed 422 Unprocessable Entity in 45ms (Views: 0.3ms | ActiveRecord: 1.9ms)
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_create_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#create as JSON
+ Parameters: {"user"=>{"name"=>"Name 5", "email"=>"evans@abbott.info", "tax_id"=>578974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
+Completed 201 Created in 22ms (Views: 1.7ms | ActiveRecord: 2.1ms)
+--------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_destroy_user
+--------------------------------------------------------------
+Processing by InvoiceBar::UsersController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 39ms (Views: 37.3ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::AccountsController#update as HTML
- Parameters: {"id"=>"1", "account"=>{"name"=>"Name 19", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/accounts/1
-Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (3.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (14.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 38ms (Views: 24.2ms | ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ContactsController#destroy as HTML
+Completed 200 OK in 48ms (ActiveRecord: 6.5ms)
+-------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/contacts
-Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ContactsController#edit as HTML
+Completed 200 OK in 13ms (ActiveRecord: 2.0ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#update as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 25ms (Views: 1.6ms | ActiveRecord: 1.6ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#create as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
+Completed 201 Created in 19ms (Views: 0.7ms | ActiveRecord: 1.7ms)
+----------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#index as JSON
+Completed 200 OK in 10ms (Views: 2.8ms | ActiveRecord: 0.4ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#show as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (6.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::ContactsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 18ms (Views: 16.0ms | ActiveRecord: 0.4ms)
-Processing by InvoiceBar::ContactsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (7.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 16ms (Views: 13.0ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::ContactsController#show as HTML
+Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.3ms)
+--------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#index as JSON
+Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 0.6ms)
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice
+-------------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#create as JSON
+ Parameters: {"invoice"=>{"number"=>"201001123", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}}
+Completed 422 Unprocessable Entity in 18ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+--------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice
+--------------------------------------------------------------------
+-----------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice
+-----------------------------------------------------------------
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice
+-------------------------------------------------------------------
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt
+-------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#create as JSON
+ Parameters: {"receipt"=>{"number"=>"201001128", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}}
+Completed 422 Unprocessable Entity in 27ms (Views: 0.4ms | ActiveRecord: 2.2ms)
+--------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#index as JSON
+Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt
+-------------------------------------------------------------------
+--------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt
+--------------------------------------------------------------------
+-----------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt
+-----------------------------------------------------------------
+-------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/contacts/1
-Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#create as HTML
- Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>"0"}}
-Redirected to http://test.host/invoice_bar/currencies/2
-Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#destroy as HTML
+Completed 200 OK in 8ms (ActiveRecord: 0.8ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#update as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 25ms (Views: 3.0ms | ActiveRecord: 2.2ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#create as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}}
+Completed 201 Created in 20ms (Views: 0.8ms | ActiveRecord: 1.7ms)
+----------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#index as JSON
+Completed 200 OK in 9ms (Views: 4.2ms | ActiveRecord: 1.0ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#show as JSON
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/currencies
-Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#edit as HTML
+Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.3ms)
+--------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_destroy_account
+--------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (3.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::CurrenciesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::CurrenciesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#show as HTML
+Completed 200 OK in 11ms (ActiveRecord: 1.9ms)
+--------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#index as JSON
+Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_create_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#create as JSON
+ Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}}
+Completed 201 Created in 21ms (Views: 3.1ms | ActiveRecord: 2.4ms)
+-----------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_show_account
+-----------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#show as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::CurrenciesController#update as HTML
- Parameters: {"id"=>"1", "currency"=>{"name"=>"kc18", "symbol"=>"k18", "priority"=>"0"}}
-Redirected to http://test.host/invoice_bar/currencies/1
-Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#create as HTML
- Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>nil, "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}}
-Redirected to http://test.host/invoice_bar/invoice_templates/2
-Completed 302 Found in 16ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#destroy as HTML
+Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_update_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#update as JSON
+ Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 8ms (Views: 0.8ms | ActiveRecord: 0.8ms)
+--------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact
+--------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#destroy as JSON
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/invoice_templates
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#edit as HTML
+Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
+-----------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_show_contact
+-----------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#show as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (4.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (34.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 48ms (Views: 42.7ms | ActiveRecord: 0.8ms)
-Processing by InvoiceBar::InvoiceTemplatesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::InvoiceTemplatesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (69.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (83.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 95ms (Views: 90.5ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::InvoiceTemplatesController#show as HTML
+Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_update_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#update as JSON
+ Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 10ms (Views: 2.7ms | ActiveRecord: 0.9ms)
+--------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#index as JSON
+Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.3ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_create_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#create as JSON
+ Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}}
+Completed 201 Created in 8ms (Views: 1.0ms | ActiveRecord: 0.6ms)
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#update as JSON
+ Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"}
+Completed 200 OK in 16ms (Views: 1.9ms | ActiveRecord: 2.3ms)
+-----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency
+-----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (18.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 30ms (Views: 25.7ms | ActiveRecord: 1.1ms)
-Processing by InvoiceBar::InvoiceTemplatesController#update as HTML
- Parameters: {"id"=>"1", "invoice_template"=>{"account_id"=>"1", "amount"=>"0", "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Name 09", "payment_identification_number"=>nil, "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/invoice_templates/1
-Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoicesController#create as HTML
- Parameters: {"invoice"=>{"number"=>"201001127", "amount"=>"1000000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "due_date"=>"2013-01-14", "issue_date"=>"2012-12-31", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/invoices/2
-Completed 302 Found in 15ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoicesController#destroy as HTML
+Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#create as JSON
+ Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}}
+Completed 201 Created in 7ms (Views: 1.2ms | ActiveRecord: 0.7ms)
+----------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_get_index
+----------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#index as JSON
+Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.2ms)
+--------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency
+--------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#show as JSON
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/invoices
-Completed 302 Found in 13ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoicesController#edit as HTML
+Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.2ms)
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice
+-------------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#update as JSON
+ Parameters: {"invoice"=>{"number"=>"12345", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}, "number"=>"201001121"}
+Completed 200 OK in 83ms (Views: 1.6ms | ActiveRecord: 2.2ms)
+--------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice
+--------------------------------------------------------------------
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice
+-------------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#create as JSON
+ Parameters: {"invoice"=>{"number"=>"201001124", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}}
+Completed 422 Unprocessable Entity in 26ms (Views: 0.3ms | ActiveRecord: 1.3ms)
+--------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#index as JSON
+Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.3ms)
+-----------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice
+-----------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#show as JSON
+ Parameters: {"number"=>"201001126"}
+Completed 200 OK in 18ms (Views: 2.1ms | ActiveRecord: 2.3ms)
+-------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (18.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 31ms (Views: 26.6ms | ActiveRecord: 0.9ms)
-Processing by InvoiceBar::InvoicesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (3.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 31ms (Views: 29.5ms | ActiveRecord: 0.8ms)
-Processing by InvoiceBar::InvoicesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 31ms (Views: 23.8ms | ActiveRecord: 0.9ms)
-Processing by InvoiceBar::InvoicesController#show as HTML
+Completed 200 OK in 14ms (ActiveRecord: 0.9ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#create as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
+Completed 201 Created in 21ms (Views: 2.7ms | ActiveRecord: 2.7ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#update as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 19ms (Views: 1.9ms | ActiveRecord: 1.9ms)
+----------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#index as JSON
+Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.3ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#show as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (11.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 22ms (Views: 17.6ms | ActiveRecord: 1.2ms)
-Processing by InvoiceBar::InvoicesController#update as HTML
- Parameters: {"id"=>"1", "invoice"=>{"number"=>"2010011213", "amount"=>"1000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "due_date"=>"2013-01-14", "issue_date"=>"2012-12-31", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/invoices/1
-Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#create as HTML
- Parameters: {"receipt_template"=>{"account_id"=>"1", "amount"=>nil, "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
-Redirected to http://test.host/invoice_bar/receipt_templates/2
-Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#destroy as HTML
+Completed 200 OK in 10ms (Views: 1.5ms | ActiveRecord: 0.4ms)
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_get_index
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#index as JSON
+Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_show_user
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#show as JSON
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/receipt_templates
-Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#edit as HTML
+Completed 200 OK in 8ms (Views: 2.0ms | ActiveRecord: 1.6ms)
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_update_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#update as JSON
+ Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "tax_id"=>1378974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"}
+Completed 422 Unprocessable Entity in 33ms (Views: 0.5ms | ActiveRecord: 1.8ms)
+--------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_destroy_user
+--------------------------------------------------------------
+Processing by InvoiceBar::UsersController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (13.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 48ms (Views: 42.8ms | ActiveRecord: 0.9ms)
-Processing by InvoiceBar::ReceiptTemplatesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 17ms (Views: 15.2ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::ReceiptTemplatesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (14.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 27ms (Views: 21.9ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::ReceiptTemplatesController#show as HTML
+Completed 200 OK in 31ms (ActiveRecord: 5.6ms)
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_create_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#create as JSON
+ Parameters: {"user"=>{"name"=>"Name 16", "email"=>"meagan@ledner.co", "tax_id"=>1678974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
+Completed 201 Created in 20ms (Views: 1.1ms | ActiveRecord: 2.0ms)
+--------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#index as JSON
+Completed 200 OK in 12ms (Views: 7.0ms | ActiveRecord: 0.6ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt
+-------------------------------------------------------------------
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt
+-------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#create as JSON
+ Parameters: {"receipt"=>{"number"=>"2010011210", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}}
+Completed 422 Unprocessable Entity in 21ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+--------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt
+--------------------------------------------------------------------
+-----------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt
+-----------------------------------------------------------------
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_create_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#create as JSON
+ Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}}
+Completed 201 Created in 13ms (Views: 1.2ms | ActiveRecord: 1.3ms)
+-----------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_show_account
+-----------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#show as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (9.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 19ms (Views: 15.4ms | ActiveRecord: 1.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#update as HTML
- Parameters: {"id"=>"1", "receipt_template"=>{"account_id"=>"1", "amount"=>"0", "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Name 19", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/receipt_templates/1
-Completed 302 Found in 16ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptsController#create as HTML
- Parameters: {"receipt"=>{"number"=>"2010011218", "amount"=>"1000000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "issue_date"=>"2012-12-31", "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/receipts/2
-Completed 302 Found in 18ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptsController#destroy as HTML
+Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_update_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#update as JSON
+ Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 7ms (Views: 0.8ms | ActiveRecord: 0.7ms)
+--------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_destroy_account
+--------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#destroy as JSON
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/receipts
-Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptsController#edit as HTML
+Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
+--------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#index as JSON
+Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_create_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#create as JSON
+ Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}}
+Completed 201 Created in 14ms (Views: 3.8ms | ActiveRecord: 1.1ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_update_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#update as JSON
+ Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 6ms (Views: 1.0ms | ActiveRecord: 0.7ms)
+-----------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_show_contact
+-----------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#show as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 29ms (Views: 25.4ms | ActiveRecord: 0.9ms)
-Processing by InvoiceBar::ReceiptsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 23ms (Views: 21.6ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::ReceiptsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (15.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 32ms (Views: 24.9ms | ActiveRecord: 0.9ms)
-Processing by InvoiceBar::ReceiptsController#show as HTML
+Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
+--------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact
+--------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (9.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 20ms (Views: 14.8ms | ActiveRecord: 1.1ms)
-Processing by InvoiceBar::ReceiptsController#update as HTML
- Parameters: {"id"=>"1", "receipt"=>{"number"=>"2010011224", "amount"=>"1000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "issue_date"=>"2012-12-31", "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/receipts/1
-Completed 302 Found in 13ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#create as HTML
- Parameters: {"user"=>{"name"=>"Name 19", "email"=>"heber@rodriguez.info", "ic"=>"8478974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/login
-Completed 302 Found in 15ms (ActiveRecord: 1.8ms)
-Processing by InvoiceBar::UsersController#destroy as HTML
+Completed 200 OK in 9ms (ActiveRecord: 0.8ms)
+--------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#index as JSON
+Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#create as JSON
+ Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}}
+Completed 201 Created in 5ms (Views: 0.9ms | ActiveRecord: 0.4ms)
+----------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_get_index
+----------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#index as JSON
+Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.2ms)
+--------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency
+--------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#show as JSON
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/users
-Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::UsersController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/users/_form.html.erb (7.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 21ms (Views: 19.0ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::UsersController#show as HTML
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
+-----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency
+-----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::UsersController#update as HTML
- Parameters: {"id"=>"1", "user"=>{"name"=>"Name 19", "email"=>"beverly@will.net", "ic"=>"8978974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/profile
-Completed 302 Found in 14ms (ActiveRecord: 1.4ms)
-Connecting to database specified by database.yml
-Processing by InvoiceBar::AccountsController#create as HTML
- Parameters: {"account"=>{"name"=>"Account", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"2", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/accounts/2
-Completed 302 Found in 239ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#destroy as HTML
+Completed 200 OK in 4ms (ActiveRecord: 0.7ms)
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#update as JSON
+ Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"}
+Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.2ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#show as JSON
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/accounts
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::AccountsController#edit as HTML
+Completed 200 OK in 10ms (Views: 1.0ms | ActiveRecord: 0.7ms)
+----------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#index as JSON
+Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#update as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 9ms (Views: 1.4ms | ActiveRecord: 0.6ms)
+-------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (8.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.6ms)
-Completed 200 OK in 77ms (Views: 72.6ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::AccountsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::AccountsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (5.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms)
-Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::AccountsController#show as HTML
+Completed 200 OK in 13ms (ActiveRecord: 1.8ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#create as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}}
+Completed 201 Created in 9ms (Views: 0.7ms | ActiveRecord: 0.8ms)
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+--------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#index as JSON
+Completed 200 OK in 18ms (Views: 2.2ms | ActiveRecord: 0.2ms)
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_update_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#update as JSON
+ Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 16ms (Views: 2.2ms | ActiveRecord: 1.2ms)
+-----------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_show_account
+-----------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#show as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 39ms (Views: 37.0ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::AccountsController#update as HTML
- Parameters: {"id"=>"1", "account"=>{"name"=>"Name 09", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/accounts/1
-Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ContactsController#create as HTML
- Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (3.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (13.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 36ms (Views: 22.1ms | ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ContactsController#destroy as HTML
+Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_create_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#create as JSON
+ Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}}
+Completed 201 Created in 17ms (Views: 1.1ms | ActiveRecord: 2.6ms)
+--------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_destroy_account
+--------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#destroy as JSON
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/contacts
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ContactsController#edit as HTML
+Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
+----------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#index as JSON
+Completed 200 OK in 8ms (Views: 1.4ms | ActiveRecord: 0.2ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#create as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
+Completed 201 Created in 19ms (Views: 1.1ms | ActiveRecord: 1.4ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#update as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 21ms (Views: 1.1ms | ActiveRecord: 2.3ms)
+-------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (7.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 16ms (Views: 14.1ms | ActiveRecord: 0.2ms)
-Processing by InvoiceBar::ContactsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 18ms (Views: 15.7ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ContactsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (7.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 15ms (Views: 12.2ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ContactsController#show as HTML
+Completed 200 OK in 6ms (ActiveRecord: 0.6ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#show as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 15ms (Views: 13.3ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::ContactsController#update as HTML
- Parameters: {"id"=>"1", "contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/contacts/1
-Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#create as HTML
- Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>"0"}}
-Redirected to http://test.host/invoice_bar/currencies/2
-Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#destroy as HTML
+Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_create_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#create as JSON
+ Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}}
+Completed 201 Created in 17ms (Views: 3.8ms | ActiveRecord: 1.2ms)
+--------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact
+--------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#destroy as JSON
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/currencies
-Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#edit as HTML
+Completed 200 OK in 9ms (ActiveRecord: 1.2ms)
+-----------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_show_contact
+-----------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#show as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (3.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 15ms (Views: 12.5ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::CurrenciesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms)
-Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::CurrenciesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.0ms)
-Processing by InvoiceBar::CurrenciesController#show as HTML
+Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_update_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#update as JSON
+ Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 16ms (Views: 1.4ms | ActiveRecord: 1.1ms)
+--------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#index as JSON
+Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt
+-------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#create as JSON
+ Parameters: {"receipt"=>{"number"=>"201001122", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}}
+Completed 422 Unprocessable Entity in 30ms (Views: 0.8ms | ActiveRecord: 1.2ms)
+--------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#index as JSON
+Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 0.6ms)
+--------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt
+--------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#destroy as JSON
+ Parameters: {"number"=>"201001124"}
+Completed 200 OK in 39ms (ActiveRecord: 6.1ms)
+-----------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt
+-----------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#show as JSON
+ Parameters: {"number"=>"201001125"}
+Completed 200 OK in 18ms (Views: 4.4ms | ActiveRecord: 1.3ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt
+-------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#update as JSON
+ Parameters: {"receipt"=>{"number"=>"12345", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}, "number"=>"201001126"}
+Completed 200 OK in 85ms (Views: 3.6ms | ActiveRecord: 8.4ms)
+--------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_destroy_user
+--------------------------------------------------------------
+Processing by InvoiceBar::UsersController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::CurrenciesController#update as HTML
- Parameters: {"id"=>"1", "currency"=>{"name"=>"kc18", "symbol"=>"k18", "priority"=>"0"}}
-Redirected to http://test.host/invoice_bar/currencies/1
-Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#create as HTML
- Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>nil, "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}}
-Redirected to http://test.host/invoice_bar/invoice_templates/2
-Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#destroy as HTML
+Completed 200 OK in 50ms (ActiveRecord: 8.2ms)
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_show_user
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#show as JSON
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/invoice_templates
-Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#edit as HTML
+Completed 200 OK in 8ms (Views: 2.1ms | ActiveRecord: 0.6ms)
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_update_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#update as JSON
+ Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "tax_id"=>2378974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"}
+Completed 422 Unprocessable Entity in 62ms (Views: 0.8ms | ActiveRecord: 4.1ms)
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_get_index
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#index as JSON
+Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.7ms)
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_create_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#create as JSON
+ Parameters: {"user"=>{"name"=>"Name 26", "email"=>"sydnee@gibson.net", "tax_id"=>2678974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
+Completed 201 Created in 10ms (Views: 1.1ms | ActiveRecord: 0.7ms)
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice
+-------------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#create as JSON
+ Parameters: {"invoice"=>{"number"=>"201001128", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}}
+Completed 422 Unprocessable Entity in 22ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+--------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#index as JSON
+Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)
+--------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice
+--------------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#destroy as JSON
+ Parameters: {"number"=>"2010011210"}
+Completed 200 OK in 12ms (ActiveRecord: 1.7ms)
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice
+-------------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#update as JSON
+ Parameters: {"invoice"=>{"number"=>"12345", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}, "number"=>"2010011211"}
+Completed 200 OK in 33ms (Views: 1.8ms | ActiveRecord: 3.1ms)
+-----------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice
+-----------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#show as JSON
+ Parameters: {"number"=>"2010011212"}
+Completed 200 OK in 6ms (Views: 1.0ms | ActiveRecord: 0.3ms)
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#create as JSON
+ Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}}
+Completed 201 Created in 22ms (Views: 2.1ms | ActiveRecord: 2.4ms)
+-----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency
+-----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (4.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (33.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 50ms (Views: 44.0ms | ActiveRecord: 1.0ms)
-Processing by InvoiceBar::InvoiceTemplatesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 17ms (Views: 14.8ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::InvoiceTemplatesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (68.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (84.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 96ms (Views: 91.4ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::InvoiceTemplatesController#show as HTML
+Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
+----------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_get_index
+----------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#index as JSON
+Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
+--------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency
+--------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#show as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (19.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 31ms (Views: 26.4ms | ActiveRecord: 1.2ms)
-Processing by InvoiceBar::InvoiceTemplatesController#update as HTML
- Parameters: {"id"=>"1", "invoice_template"=>{"account_id"=>"1", "amount"=>"0", "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Name 09", "payment_identification_number"=>nil, "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/invoice_templates/1
-Completed 302 Found in 15ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoicesController#create as HTML
- Parameters: {"invoice"=>{"number"=>"201001127", "amount"=>"1000000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "due_date"=>"2013-01-14", "issue_date"=>"2012-12-31", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/invoices/2
-Completed 302 Found in 16ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoicesController#destroy as HTML
+Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#update as JSON
+ Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"}
+Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 2.0ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#create as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}}
+Completed 201 Created in 29ms (Views: 1.5ms | ActiveRecord: 2.7ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#show as JSON
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/invoices
-Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::InvoicesController#edit as HTML
+Completed 200 OK in 10ms (Views: 1.1ms | ActiveRecord: 0.7ms)
+-------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (20.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 31ms (Views: 27.2ms | ActiveRecord: 1.2ms)
-Processing by InvoiceBar::InvoicesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 30ms (Views: 28.3ms | ActiveRecord: 0.6ms)
-Processing by InvoiceBar::InvoicesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (15.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 103ms (Views: 21.4ms | ActiveRecord: 1.0ms)
-Processing by InvoiceBar::InvoicesController#show as HTML
+Completed 200 OK in 14ms (ActiveRecord: 1.9ms)
+----------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#index as JSON
+Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.4ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#update as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 24ms (Views: 1.5ms | ActiveRecord: 3.4ms)
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#create as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}}
+Completed 201 Created in 62ms (Views: 7.5ms | ActiveRecord: 5.1ms)
+-------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (10.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 22ms (Views: 16.7ms | ActiveRecord: 1.1ms)
-Processing by InvoiceBar::InvoicesController#update as HTML
- Parameters: {"id"=>"1", "invoice"=>{"number"=>"2010011213", "amount"=>"1000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "due_date"=>"2013-01-14", "issue_date"=>"2012-12-31", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/invoices/1
-Completed 302 Found in 13ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#create as HTML
- Parameters: {"receipt_template"=>{"account_id"=>"1", "amount"=>nil, "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
-Redirected to http://test.host/invoice_bar/receipt_templates/2
-Completed 302 Found in 16ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#destroy as HTML
+Completed 200 OK in 17ms (ActiveRecord: 1.5ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#update as JSON
+ Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 10ms (Views: 1.0ms | ActiveRecord: 0.7ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#show as JSON
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/receipt_templates
-Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#edit as HTML
+Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.2ms)
+----------------------------------------------------------------------
+InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::InvoiceTemplatesController#index as JSON
+Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 1.2ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#update as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 24ms (Views: 2.8ms | ActiveRecord: 3.6ms)
+----------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template
+----------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#show as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (13.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 27ms (Views: 20.7ms | ActiveRecord: 1.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.6ms)
-Processing by InvoiceBar::ReceiptTemplatesController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (13.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 25ms (Views: 20.2ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::ReceiptTemplatesController#show as HTML
+Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.2ms)
+------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template
+------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#create as JSON
+ Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}}
+Completed 201 Created in 12ms (Views: 0.7ms | ActiveRecord: 1.3ms)
+-------------------------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template
+-------------------------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (8.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 20ms (Views: 15.9ms | ActiveRecord: 1.0ms)
-Processing by InvoiceBar::ReceiptTemplatesController#update as HTML
- Parameters: {"id"=>"1", "receipt_template"=>{"account_id"=>"1", "amount"=>"0", "contact_dic"=>nil, "contact_ic"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Name 09", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/receipt_templates/1
-Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptsController#create as HTML
- Parameters: {"receipt"=>{"number"=>"2010011218", "amount"=>"1000000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "issue_date"=>"2012-12-31", "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/receipts/2
-Completed 302 Found in 17ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptsController#destroy as HTML
+Completed 200 OK in 7ms (ActiveRecord: 1.0ms)
+----------------------------------------------------------------------
+InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index
+----------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptTemplatesController#index as JSON
+Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms)
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#update as JSON
+ Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"}
+Completed 200 OK in 19ms (Views: 1.1ms | ActiveRecord: 2.1ms)
+--------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency
+--------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#show as JSON
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/receipts
-Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::ReceiptsController#edit as HTML
+Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)
+----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency
+----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#create as JSON
+ Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}}
+Completed 201 Created in 10ms (Views: 1.2ms | ActiveRecord: 1.2ms)
+-----------------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency
+-----------------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (16.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.6ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 28ms (Views: 23.8ms | ActiveRecord: 0.8ms)
-Processing by InvoiceBar::ReceiptsController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 24ms (Views: 22.7ms | ActiveRecord: 0.5ms)
-Processing by InvoiceBar::ReceiptsController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_document.html.erb (14.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 28ms (Views: 20.8ms | ActiveRecord: 0.8ms)
-Processing by InvoiceBar::ReceiptsController#show as HTML
+Completed 200 OK in 7ms (ActiveRecord: 1.1ms)
+----------------------------------------------------------------
+InvoiceBar::API::CurrenciesControllerTest: test_should_get_index
+----------------------------------------------------------------
+Processing by InvoiceBar::CurrenciesController#index as JSON
+Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.3ms)
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_create_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#create as JSON
+ Parameters: {"user"=>{"name"=>"Name 17", "email"=>"evie@kutchbrakus.com", "tax_id"=>1778974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
+Completed 201 Created in 19ms (Views: 1.3ms | ActiveRecord: 1.6ms)
+--------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_destroy_user
+--------------------------------------------------------------
+Processing by InvoiceBar::UsersController#destroy as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/documents/_show.html.erb (12.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 23ms (Views: 18.1ms | ActiveRecord: 1.3ms)
-Processing by InvoiceBar::ReceiptsController#update as HTML
- Parameters: {"id"=>"1", "receipt"=>{"number"=>"2010011224", "amount"=>"1000", "contact_name"=>"Company", "contact_ic"=>"102939", "contact_dic"=>nil, "issue_date"=>"2012-12-31", "account_id"=>"1", "user_id"=>"1"}}
-Redirected to http://test.host/invoice_bar/receipts/1
-Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#create as HTML
- Parameters: {"user"=>{"name"=>"Name 09", "email"=>"hipolito@osinski.info", "ic"=>"8478974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/login
-Completed 302 Found in 11ms (ActiveRecord: 2.1ms)
-Processing by InvoiceBar::UsersController#destroy as HTML
+Completed 200 OK in 38ms (ActiveRecord: 6.0ms)
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_get_index
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#index as JSON
+Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
+-----------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_show_user
+-----------------------------------------------------------
+Processing by InvoiceBar::UsersController#show as JSON
Parameters: {"id"=>"1"}
-Redirected to http://test.host/invoice_bar/users
-Completed 302 Found in 19ms (ActiveRecord: 0.0ms)
-Processing by InvoiceBar::UsersController#index as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.4ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.3ms)
-Processing by InvoiceBar::UsersController#new as HTML
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/users/_form.html.erb (5.9ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 18ms (Views: 15.9ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::UsersController#show as HTML
+Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
+-------------------------------------------------------------
+InvoiceBar::API::UsersControllerTest: test_should_update_user
+-------------------------------------------------------------
+Processing by InvoiceBar::UsersController#update as JSON
+ Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "tax_id"=>2178974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"}
+Completed 422 Unprocessable Entity in 27ms (Views: 0.3ms | ActiveRecord: 2.9ms)
+--------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#index as JSON
+Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.9ms)
+-----------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt
+-----------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#show as JSON
+ Parameters: {"number"=>"201001122"}
+Completed 200 OK in 6ms (Views: 0.7ms | ActiveRecord: 0.6ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt
+-------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#update as JSON
+ Parameters: {"receipt"=>{"number"=>"12345", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}, "number"=>"201001123"}
+Completed 200 OK in 45ms (Views: 2.0ms | ActiveRecord: 1.3ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt
+-------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#create as JSON
+ Parameters: {"receipt"=>{"number"=>"201001125", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}}
+Completed 422 Unprocessable Entity in 29ms (Views: 0.3ms | ActiveRecord: 1.5ms)
+--------------------------------------------------------------------
+InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt
+--------------------------------------------------------------------
+Processing by InvoiceBar::ReceiptsController#destroy as JSON
+ Parameters: {"number"=>"201001126"}
+Completed 200 OK in 19ms (ActiveRecord: 2.1ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_create_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#create as JSON
+ Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}}
+Completed 201 Created in 9ms (Views: 1.4ms | ActiveRecord: 0.5ms)
+-----------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_show_contact
+-----------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#show as JSON
Parameters: {"id"=>"1"}
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.1ms)
- Rendered /Users/strzibny/www/invoicebarengine/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms)
-Completed 200 OK in 84ms (Views: 82.6ms | ActiveRecord: 0.1ms)
-Processing by InvoiceBar::UsersController#update as HTML
- Parameters: {"id"=>"1", "user"=>{"name"=>"Name 09", "email"=>"genoveva@sporer.biz", "ic"=>"8978974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}}
-Redirected to http://test.host/invoice_bar/profile
-Completed 302 Found in 13ms (ActiveRecord: 1.3ms)
+Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
+--------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#index as JSON
+Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.2ms)
+-------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_update_contact
+-------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#update as JSON
+ Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 0.5ms)
+--------------------------------------------------------------------
+InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact
+--------------------------------------------------------------------
+Processing by InvoiceBar::ContactsController#destroy as JSON
+ Parameters: {"id"=>"1"}
+Completed 200 OK in 6ms (ActiveRecord: 0.7ms)
+--------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_destroy_account
+--------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#destroy as JSON
+ Parameters: {"id"=>"1"}
+Completed 200 OK in 8ms (ActiveRecord: 1.1ms)
+--------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#index as JSON
+Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 0.8ms)
+-----------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_show_account
+-----------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#show as JSON
+ Parameters: {"id"=>"1"}
+Completed 200 OK in 10ms (Views: 2.8ms | ActiveRecord: 0.9ms)
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_update_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#update as JSON
+ Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"}
+Completed 200 OK in 13ms (Views: 1.2ms | ActiveRecord: 1.1ms)
+-------------------------------------------------------------------
+InvoiceBar::API::AccountsControllerTest: test_should_create_account
+-------------------------------------------------------------------
+Processing by InvoiceBar::AccountsController#create as JSON
+ Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}}
+Completed 201 Created in 25ms (Views: 3.1ms | ActiveRecord: 2.5ms)
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice
+-------------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#update as JSON
+ Parameters: {"invoice"=>{"number"=>"12345", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}, "number"=>"201001127"}
+Completed 200 OK in 34ms (Views: 1.7ms | ActiveRecord: 2.6ms)
+-------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice
+-------------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#create as JSON
+ Parameters: {"invoice"=>{"number"=>"201001129", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}}
+Completed 422 Unprocessable Entity in 32ms (Views: 0.2ms | ActiveRecord: 2.1ms)
+--------------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice
+--------------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#destroy as JSON
+ Parameters: {"number"=>"2010011210"}
+Completed 200 OK in 17ms (ActiveRecord: 2.0ms)
+-----------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice
+-----------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#show as JSON
+ Parameters: {"number"=>"2010011211"}
+Completed 200 OK in 20ms (Views: 2.7ms | ActiveRecord: 0.6ms)
+--------------------------------------------------------------
+InvoiceBar::API::InvoicesControllerTest: test_should_get_index
+--------------------------------------------------------------
+Processing by InvoiceBar::InvoicesController#index as JSON
+Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)