rails_db_info 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +34 -0
  4. data/app/assets/javascripts/rails_db_info/application.js +13 -0
  5. data/app/assets/javascripts/rails_db_info/tables.js +2 -0
  6. data/app/assets/stylesheets/rails_db_info/application.css +53 -0
  7. data/app/assets/stylesheets/rails_db_info/tables.css +4 -0
  8. data/app/controllers/rails_db_info/application_controller.rb +4 -0
  9. data/app/controllers/rails_db_info/tables_controller.rb +21 -0
  10. data/app/helpers/rails_db_info/application_helper.rb +19 -0
  11. data/app/helpers/rails_db_info/tables_helper.rb +4 -0
  12. data/app/views/layouts/rails_db_info/application.html.erb +16 -0
  13. data/app/views/rails_db_info/tables/_header.html.erb +14 -0
  14. data/app/views/rails_db_info/tables/entries.html.erb +20 -0
  15. data/app/views/rails_db_info/tables/index.html.erb +17 -0
  16. data/app/views/rails_db_info/tables/show.html.erb +18 -0
  17. data/config/routes.rb +10 -0
  18. data/lib/rails_db_info/engine.rb +5 -0
  19. data/lib/rails_db_info/table.rb +29 -0
  20. data/lib/rails_db_info/table_entries.rb +52 -0
  21. data/lib/rails_db_info/version.rb +3 -0
  22. data/lib/rails_db_info.rb +4 -0
  23. data/lib/tasks/rails_db_info_tasks.rake +4 -0
  24. data/test/controllers/rails_db_info/tables_controller_test.rb +9 -0
  25. data/test/dummy/README.rdoc +28 -0
  26. data/test/dummy/Rakefile +6 -0
  27. data/test/dummy/app/assets/javascripts/application.js +13 -0
  28. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  29. data/test/dummy/app/controllers/application_controller.rb +5 -0
  30. data/test/dummy/app/helpers/application_helper.rb +2 -0
  31. data/test/dummy/app/models/user.rb +2 -0
  32. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  33. data/test/dummy/bin/bundle +3 -0
  34. data/test/dummy/bin/rails +4 -0
  35. data/test/dummy/bin/rake +4 -0
  36. data/test/dummy/config/application.rb +23 -0
  37. data/test/dummy/config/boot.rb +5 -0
  38. data/test/dummy/config/database.yml +40 -0
  39. data/test/dummy/config/environment.rb +5 -0
  40. data/test/dummy/config/environments/development.rb +29 -0
  41. data/test/dummy/config/environments/production.rb +80 -0
  42. data/test/dummy/config/environments/test.rb +36 -0
  43. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  44. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  45. data/test/dummy/config/initializers/inflections.rb +16 -0
  46. data/test/dummy/config/initializers/mime_types.rb +5 -0
  47. data/test/dummy/config/initializers/secret_token.rb +12 -0
  48. data/test/dummy/config/initializers/session_store.rb +3 -0
  49. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  50. data/test/dummy/config/locales/en.yml +23 -0
  51. data/test/dummy/config/routes.rb +3 -0
  52. data/test/dummy/config.ru +4 -0
  53. data/test/dummy/db/migrate/20130819203338_create_users.rb +12 -0
  54. data/test/dummy/db/schema.rb +25 -0
  55. data/test/dummy/db/test.sqlite3 +0 -0
  56. data/test/dummy/log/development.log +5 -0
  57. data/test/dummy/log/test.log +341 -0
  58. data/test/dummy/public/404.html +58 -0
  59. data/test/dummy/public/422.html +58 -0
  60. data/test/dummy/public/500.html +57 -0
  61. data/test/dummy/public/favicon.ico +0 -0
  62. data/test/dummy/test/fixtures/users.yml +13 -0
  63. data/test/dummy/test/models/user_test.rb +7 -0
  64. data/test/dummy/tmp/cache/assets/test/sprockets/0ff3a9241bbf1c751ced680adfa90b59 +0 -0
  65. data/test/dummy/tmp/cache/assets/test/sprockets/1feb7eec1529672092299032ef2d6325 +0 -0
  66. data/test/dummy/tmp/cache/assets/test/sprockets/2dc95e0e7e3281df7eb8e26fbb8a3a59 +0 -0
  67. data/test/dummy/tmp/cache/assets/test/sprockets/72881d4d0eb1a7d61ba5420798add236 +0 -0
  68. data/test/dummy/tmp/cache/assets/test/sprockets/ab1417852e512b0f0f50fbdc19d1f890 +0 -0
  69. data/test/dummy/tmp/cache/assets/test/sprockets/b1a87f7961214599041bb9b30c8e398e +0 -0
  70. data/test/dummy/tmp/cache/assets/test/sprockets/bf0ff79f1edd27152fd4681650468a43 +0 -0
  71. data/test/dummy/tmp/cache/assets/test/sprockets/c903f846849a6d4c555eaf82468a7e6e +0 -0
  72. data/test/helpers/rails_db_info/tables_helper_test.rb +6 -0
  73. data/test/integration/navigation_test.rb +71 -0
  74. data/test/rails_db_info_test.rb +7 -0
  75. data/test/test_helper.rb +15 -0
  76. metadata +225 -0
@@ -0,0 +1,341 @@
1
+  (0.2ms) begin transaction
2
+ ---------------------------------------------------
3
+ NavigationTest: test_I_can_paginate_through_entires
4
+ ---------------------------------------------------
5
+  (0.0ms) rollback transaction
6
+  (0.1ms) begin transaction
7
+ ------------------------------------------------------------------------------
8
+ NavigationTest: test_I_see_list_of_tables_when_I_visit_rails_db_info_dashboard
9
+ ------------------------------------------------------------------------------
10
+ Started GET "/rails/info/db" for 127.0.0.1 at 2013-11-21 22:43:12 +0100
11
+ Processing by RailsDbInfo::TablesController#index as HTML
12
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/_header.html.erb (0.7ms)
13
+ Completed 200 OK in 22ms (Views: 21.1ms | ActiveRecord: 0.2ms)
14
+  (0.1ms) rollback transaction
15
+  (0.0ms) begin transaction
16
+ -----------------------------------------------------------------------
17
+ NavigationTest: test_I_see_table_column_details_when_I_visit_table_page
18
+ -----------------------------------------------------------------------
19
+ Started GET "/rails/info/db/tables/users" for 127.0.0.1 at 2013-11-21 22:43:12 +0100
20
+ Processing by RailsDbInfo::TablesController#show as HTML
21
+ Parameters: {"id"=>"users"}
22
+ Completed 500 Internal Server Error in 3ms
23
+  (0.0ms) rollback transaction
24
+  (0.0ms) begin transaction
25
+ ----------------------------------------------------------------------------------------------------
26
+ NavigationTest: test_I_see_table_title,_column_names_and_values_when_I_visit_show_table_entries_page
27
+ ----------------------------------------------------------------------------------------------------
28
+  (0.0ms) rollback transaction
29
+  (0.0ms) begin transaction
30
+ ---------------------------
31
+ RailsDbInfoTest: test_truth
32
+ ---------------------------
33
+  (0.0ms) rollback transaction
34
+  (0.2ms) begin transaction
35
+ ---------------------------------------------------
36
+ NavigationTest: test_I_can_paginate_through_entires
37
+ ---------------------------------------------------
38
+  (0.1ms) SAVEPOINT active_record_1
39
+ SQL (4.5ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado1@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado1"]]
40
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41
+  (0.0ms) SAVEPOINT active_record_1
42
+ SQL (0.8ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado2@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado2"]]
43
+  (0.1ms) RELEASE SAVEPOINT active_record_1
44
+  (0.0ms) SAVEPOINT active_record_1
45
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado3@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado3"]]
46
+  (0.0ms) RELEASE SAVEPOINT active_record_1
47
+  (0.0ms) SAVEPOINT active_record_1
48
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado4@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado4"]]
49
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50
+  (0.0ms) SAVEPOINT active_record_1
51
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado5@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado5"]]
52
+  (0.0ms) RELEASE SAVEPOINT active_record_1
53
+  (0.0ms) SAVEPOINT active_record_1
54
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado6@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado6"]]
55
+  (0.0ms) RELEASE SAVEPOINT active_record_1
56
+  (0.0ms) SAVEPOINT active_record_1
57
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado7@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado7"]]
58
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59
+  (0.0ms) SAVEPOINT active_record_1
60
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado8@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado8"]]
61
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62
+  (0.0ms) SAVEPOINT active_record_1
63
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado9@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado9"]]
64
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65
+  (0.0ms) SAVEPOINT active_record_1
66
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado10@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado10"]]
67
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68
+  (0.0ms) SAVEPOINT active_record_1
69
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado11@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado11"]]
70
+  (0.0ms) RELEASE SAVEPOINT active_record_1
71
+  (0.0ms) SAVEPOINT active_record_1
72
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado12@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado12"]]
73
+  (0.0ms) RELEASE SAVEPOINT active_record_1
74
+  (0.0ms) SAVEPOINT active_record_1
75
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado13@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado13"]]
76
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77
+  (0.0ms) SAVEPOINT active_record_1
78
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado14@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado14"]]
79
+  (0.0ms) RELEASE SAVEPOINT active_record_1
80
+  (0.0ms) SAVEPOINT active_record_1
81
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado15@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado15"]]
82
+  (0.0ms) RELEASE SAVEPOINT active_record_1
83
+  (0.0ms) SAVEPOINT active_record_1
84
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado16@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado16"]]
85
+  (0.0ms) RELEASE SAVEPOINT active_record_1
86
+  (0.0ms) SAVEPOINT active_record_1
87
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado17@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado17"]]
88
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89
+  (0.0ms) SAVEPOINT active_record_1
90
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado18@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado18"]]
91
+  (0.0ms) RELEASE SAVEPOINT active_record_1
92
+  (0.0ms) SAVEPOINT active_record_1
93
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado19@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado19"]]
94
+  (0.0ms) RELEASE SAVEPOINT active_record_1
95
+  (0.0ms) SAVEPOINT active_record_1
96
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado20@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado20"]]
97
+  (0.0ms) RELEASE SAVEPOINT active_record_1
98
+  (0.0ms) SAVEPOINT active_record_1
99
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado21@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado21"]]
100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
101
+  (0.0ms) SAVEPOINT active_record_1
102
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado22@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado22"]]
103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
104
+  (0.0ms) SAVEPOINT active_record_1
105
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado23@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado23"]]
106
+  (0.0ms) RELEASE SAVEPOINT active_record_1
107
+  (0.0ms) SAVEPOINT active_record_1
108
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado24@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado24"]]
109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110
+  (0.0ms) SAVEPOINT active_record_1
111
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado25@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado25"]]
112
+  (0.0ms) RELEASE SAVEPOINT active_record_1
113
+ Started GET "/rails/info/db/tables/users/entries" for 127.0.0.1 at 2013-11-21 22:44:12 +0100
114
+ Processing by RailsDbInfo::TablesController#entries as HTML
115
+ Parameters: {"table_id"=>"users"}
116
+  (0.1ms) SELECT * FROM users LIMIT 10 OFFSET 0
117
+  (0.0ms) SELECT COUNT(*) FROM users
118
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/entries.html.erb within layouts/rails_db_info/application (7.8ms)
119
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/_header.html.erb (0.8ms)
120
+ Completed 200 OK in 20ms (Views: 18.7ms | ActiveRecord: 0.6ms)
121
+ Started GET "/rails/info/db/tables/users/entries?page=1" for 127.0.0.1 at 2013-11-21 22:44:12 +0100
122
+ Processing by RailsDbInfo::TablesController#entries as HTML
123
+ Parameters: {"page"=>"1", "table_id"=>"users"}
124
+  (0.1ms) SELECT * FROM users LIMIT 10 OFFSET 0
125
+  (0.0ms) SELECT COUNT(*) FROM users
126
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/entries.html.erb within layouts/rails_db_info/application (3.0ms)
127
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/_header.html.erb (0.4ms)
128
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.6ms)
129
+ Started GET "/rails/info/db/tables/users/entries?page=2" for 127.0.0.1 at 2013-11-21 22:44:12 +0100
130
+ Processing by RailsDbInfo::TablesController#entries as HTML
131
+ Parameters: {"page"=>"2", "table_id"=>"users"}
132
+  (0.1ms) SELECT * FROM users LIMIT 10 OFFSET 10
133
+  (0.0ms) SELECT COUNT(*) FROM users
134
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/entries.html.erb within layouts/rails_db_info/application (2.9ms)
135
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/_header.html.erb (0.4ms)
136
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.5ms)
137
+ Started GET "/rails/info/db/tables/users/entries?page=3" for 127.0.0.1 at 2013-11-21 22:44:12 +0100
138
+ Processing by RailsDbInfo::TablesController#entries as HTML
139
+ Parameters: {"page"=>"3", "table_id"=>"users"}
140
+  (0.1ms) SELECT * FROM users LIMIT 10 OFFSET 20
141
+  (0.1ms) SELECT COUNT(*) FROM users
142
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/entries.html.erb within layouts/rails_db_info/application (23.8ms)
143
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/_header.html.erb (0.4ms)
144
+ Completed 200 OK in 25ms (Views: 24.4ms | ActiveRecord: 0.4ms)
145
+  (1.1ms) rollback transaction
146
+  (0.1ms) begin transaction
147
+ ------------------------------------------------------------------------------
148
+ NavigationTest: test_I_see_list_of_tables_when_I_visit_rails_db_info_dashboard
149
+ ------------------------------------------------------------------------------
150
+ Started GET "/rails/info/db" for 127.0.0.1 at 2013-11-21 22:44:12 +0100
151
+ Processing by RailsDbInfo::TablesController#index as HTML
152
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/_header.html.erb (0.2ms)
153
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)
154
+  (0.1ms) rollback transaction
155
+  (0.0ms) begin transaction
156
+ -----------------------------------------------------------------------
157
+ NavigationTest: test_I_see_table_column_details_when_I_visit_table_page
158
+ -----------------------------------------------------------------------
159
+ Started GET "/rails/info/db/tables/users" for 127.0.0.1 at 2013-11-21 22:44:12 +0100
160
+ Processing by RailsDbInfo::TablesController#show as HTML
161
+ Parameters: {"id"=>"users"}
162
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/_header.html.erb (0.5ms)
163
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
164
+  (0.0ms) rollback transaction
165
+  (0.1ms) begin transaction
166
+ ----------------------------------------------------------------------------------------------------
167
+ NavigationTest: test_I_see_table_title,_column_names_and_values_when_I_visit_show_table_entries_page
168
+ ----------------------------------------------------------------------------------------------------
169
+  (0.0ms) SAVEPOINT active_record_1
170
+ SQL (0.3ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "vlado@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "vlado"]]
171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
172
+  (0.0ms) SAVEPOINT active_record_1
173
+ SQL (0.3ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", false], ["age", 34], ["created_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["email", "ana@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:12 UTC +00:00], ["username", "ana"]]
174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
175
+ Started GET "/rails/info/db/tables/users/entries" for 127.0.0.1 at 2013-11-21 22:44:12 +0100
176
+ Processing by RailsDbInfo::TablesController#entries as HTML
177
+ Parameters: {"table_id"=>"users"}
178
+  (0.1ms) SELECT * FROM users LIMIT 10 OFFSET 0
179
+  (0.0ms) SELECT COUNT(*) FROM users
180
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/_header.html.erb (0.5ms)
181
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)
182
+  (0.4ms) rollback transaction
183
+  (0.0ms) begin transaction
184
+ ---------------------------
185
+ RailsDbInfoTest: test_truth
186
+ ---------------------------
187
+  (0.0ms) rollback transaction
188
+  (0.2ms) begin transaction
189
+ ---------------------------------------------------
190
+ NavigationTest: test_I_can_paginate_through_entires
191
+ ---------------------------------------------------
192
+  (0.1ms) SAVEPOINT active_record_1
193
+ SQL (1.7ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado1@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado1"]]
194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
195
+  (0.0ms) SAVEPOINT active_record_1
196
+ SQL (1.0ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado2@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado2"]]
197
+  (0.1ms) RELEASE SAVEPOINT active_record_1
198
+  (0.0ms) SAVEPOINT active_record_1
199
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado3@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado3"]]
200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
201
+  (0.0ms) SAVEPOINT active_record_1
202
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado4@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado4"]]
203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
204
+  (0.0ms) SAVEPOINT active_record_1
205
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado5@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado5"]]
206
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207
+  (0.0ms) SAVEPOINT active_record_1
208
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado6@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado6"]]
209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
210
+  (0.0ms) SAVEPOINT active_record_1
211
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado7@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado7"]]
212
+  (0.0ms) RELEASE SAVEPOINT active_record_1
213
+  (0.0ms) SAVEPOINT active_record_1
214
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado8@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado8"]]
215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
216
+  (0.0ms) SAVEPOINT active_record_1
217
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado9@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado9"]]
218
+  (0.0ms) RELEASE SAVEPOINT active_record_1
219
+  (0.0ms) SAVEPOINT active_record_1
220
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado10@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado10"]]
221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
222
+  (0.0ms) SAVEPOINT active_record_1
223
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado11@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado11"]]
224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
225
+  (0.0ms) SAVEPOINT active_record_1
226
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado12@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado12"]]
227
+  (0.0ms) RELEASE SAVEPOINT active_record_1
228
+  (0.0ms) SAVEPOINT active_record_1
229
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado13@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado13"]]
230
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231
+  (0.0ms) SAVEPOINT active_record_1
232
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado14@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado14"]]
233
+  (0.0ms) RELEASE SAVEPOINT active_record_1
234
+  (0.0ms) SAVEPOINT active_record_1
235
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado15@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado15"]]
236
+  (0.0ms) RELEASE SAVEPOINT active_record_1
237
+  (0.0ms) SAVEPOINT active_record_1
238
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado16@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado16"]]
239
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240
+  (0.0ms) SAVEPOINT active_record_1
241
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado17@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado17"]]
242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
243
+  (0.0ms) SAVEPOINT active_record_1
244
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado18@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado18"]]
245
+  (0.0ms) RELEASE SAVEPOINT active_record_1
246
+  (0.0ms) SAVEPOINT active_record_1
247
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado19@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado19"]]
248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
249
+  (0.0ms) SAVEPOINT active_record_1
250
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado20@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado20"]]
251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252
+  (0.0ms) SAVEPOINT active_record_1
253
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado21@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado21"]]
254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
255
+  (0.0ms) SAVEPOINT active_record_1
256
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado22@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado22"]]
257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
258
+  (0.0ms) SAVEPOINT active_record_1
259
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado23@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado23"]]
260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
261
+  (0.0ms) SAVEPOINT active_record_1
262
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado24@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado24"]]
263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
264
+  (0.0ms) SAVEPOINT active_record_1
265
+ SQL (0.1ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado25@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado25"]]
266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
267
+ Started GET "/rails/info/db/tables/users/entries" for 127.0.0.1 at 2013-11-21 22:44:18 +0100
268
+ Processing by RailsDbInfo::TablesController#entries as HTML
269
+ Parameters: {"table_id"=>"users"}
270
+  (0.1ms) SELECT * FROM users LIMIT 10 OFFSET 0
271
+  (0.0ms) SELECT COUNT(*) FROM users
272
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/entries.html.erb within layouts/rails_db_info/application (8.1ms)
273
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/_header.html.erb (0.9ms)
274
+ Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.6ms)
275
+ Started GET "/rails/info/db/tables/users/entries?page=1" for 127.0.0.1 at 2013-11-21 22:44:18 +0100
276
+ Processing by RailsDbInfo::TablesController#entries as HTML
277
+ Parameters: {"page"=>"1", "table_id"=>"users"}
278
+  (0.1ms) SELECT * FROM users LIMIT 10 OFFSET 0
279
+  (0.0ms) SELECT COUNT(*) FROM users
280
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/entries.html.erb within layouts/rails_db_info/application (3.0ms)
281
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/_header.html.erb (0.4ms)
282
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.6ms)
283
+ Started GET "/rails/info/db/tables/users/entries?page=2" for 127.0.0.1 at 2013-11-21 22:44:18 +0100
284
+ Processing by RailsDbInfo::TablesController#entries as HTML
285
+ Parameters: {"page"=>"2", "table_id"=>"users"}
286
+  (0.1ms) SELECT * FROM users LIMIT 10 OFFSET 10
287
+  (0.0ms) SELECT COUNT(*) FROM users
288
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/entries.html.erb within layouts/rails_db_info/application (3.0ms)
289
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/_header.html.erb (0.4ms)
290
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.6ms)
291
+ Started GET "/rails/info/db/tables/users/entries?page=3" for 127.0.0.1 at 2013-11-21 22:44:18 +0100
292
+ Processing by RailsDbInfo::TablesController#entries as HTML
293
+ Parameters: {"page"=>"3", "table_id"=>"users"}
294
+  (0.1ms) SELECT * FROM users LIMIT 10 OFFSET 20
295
+  (0.1ms) SELECT COUNT(*) FROM users
296
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/entries.html.erb within layouts/rails_db_info/application (27.1ms)
297
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/_header.html.erb (0.5ms)
298
+ Completed 200 OK in 28ms (Views: 27.9ms | ActiveRecord: 0.4ms)
299
+  (1.0ms) rollback transaction
300
+  (0.1ms) begin transaction
301
+ ------------------------------------------------------------------------------
302
+ NavigationTest: test_I_see_list_of_tables_when_I_visit_rails_db_info_dashboard
303
+ ------------------------------------------------------------------------------
304
+ Started GET "/rails/info/db" for 127.0.0.1 at 2013-11-21 22:44:18 +0100
305
+ Processing by RailsDbInfo::TablesController#index as HTML
306
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/_header.html.erb (0.1ms)
307
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
308
+  (0.0ms) rollback transaction
309
+  (0.0ms) begin transaction
310
+ -----------------------------------------------------------------------
311
+ NavigationTest: test_I_see_table_column_details_when_I_visit_table_page
312
+ -----------------------------------------------------------------------
313
+ Started GET "/rails/info/db/tables/users" for 127.0.0.1 at 2013-11-21 22:44:18 +0100
314
+ Processing by RailsDbInfo::TablesController#show as HTML
315
+ Parameters: {"id"=>"users"}
316
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/_header.html.erb (0.5ms)
317
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)
318
+  (0.0ms) rollback transaction
319
+  (0.0ms) begin transaction
320
+ ----------------------------------------------------------------------------------------------------
321
+ NavigationTest: test_I_see_table_title,_column_names_and_values_when_I_visit_show_table_entries_page
322
+ ----------------------------------------------------------------------------------------------------
323
+  (0.0ms) SAVEPOINT active_record_1
324
+ SQL (0.3ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", true], ["age", 33], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "vlado@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "vlado"]]
325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
326
+  (0.0ms) SAVEPOINT active_record_1
327
+ SQL (0.3ms) INSERT INTO "users" ("admin", "age", "created_at", "email", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?) [["admin", false], ["age", 34], ["created_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["email", "ana@cingel.hr"], ["updated_at", Thu, 21 Nov 2013 21:44:18 UTC +00:00], ["username", "ana"]]
328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329
+ Started GET "/rails/info/db/tables/users/entries" for 127.0.0.1 at 2013-11-21 22:44:18 +0100
330
+ Processing by RailsDbInfo::TablesController#entries as HTML
331
+ Parameters: {"table_id"=>"users"}
332
+  (0.1ms) SELECT * FROM users LIMIT 10 OFFSET 0
333
+  (0.0ms) SELECT COUNT(*) FROM users
334
+ Rendered /Users/vlado/Projects/Code/rails_db_info/app/views/rails_db_info/tables/_header.html.erb (0.5ms)
335
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.2ms)
336
+  (0.5ms) rollback transaction
337
+  (0.0ms) begin transaction
338
+ ---------------------------
339
+ RailsDbInfoTest: test_truth
340
+ ---------------------------
341
+  (0.0ms) rollback transaction
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/404.html -->
52
+ <div class="dialog">
53
+ <h1>The page you were looking for doesn't exist.</h1>
54
+ <p>You may have mistyped the address or the page may have moved.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/422.html -->
52
+ <div class="dialog">
53
+ <h1>The change you wanted was rejected.</h1>
54
+ <p>Maybe you tried to change something you didn't have access to.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/500.html -->
52
+ <div class="dialog">
53
+ <h1>We're sorry, but something went wrong.</h1>
54
+ </div>
55
+ <p>If you are the application owner check the logs for more information.</p>
56
+ </body>
57
+ </html>
File without changes
@@ -0,0 +1,13 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ username: MyString
5
+ email: MyString
6
+ age: 1
7
+ admin: false
8
+
9
+ two:
10
+ username: MyString
11
+ email: MyString
12
+ age: 1
13
+ admin: false
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class UserTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ module RailsDbInfo
4
+ class TablesHelperTest < ActionView::TestCase
5
+ end
6
+ end