rails_db_info 0.1.6 → 0.1.7

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.
@@ -0,0 +1,34 @@
1
+ require 'test_helper'
2
+
3
+ class CatchAllRoutesTest < ActionDispatch::IntegrationTest
4
+ setup do
5
+ ENV['CATCH_ALL_ROUTE'] = 'catch'
6
+ Rails.application.reload_routes!
7
+ end
8
+
9
+ teardown do
10
+ ENV.delete('CATCH_ALL_ROUTE')
11
+ Rails.application.reload_routes!
12
+ end
13
+
14
+ test "I see list of tables when I visit rails_db_info dashboard" do
15
+ get '/rails/info/db'
16
+
17
+ assert assigns(:tables)
18
+ assert_select 'h1', 'Tables'
19
+ %w(schema_migrations users).each do |table|
20
+ assert_select 'table.tables tr td', table
21
+ end
22
+ end
23
+
24
+ test 'I see table column details when I visit table page' do
25
+ get '/rails/info/db/tables/users'
26
+
27
+ assert assigns(:table)
28
+ assert_select 'h1', /users/
29
+ User.columns.each do |col|
30
+ assert_select "table tr td.name", col.name
31
+ assert_select "table tr td.sql_type", col.sql_type
32
+ end
33
+ end
34
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_db_info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vlado Cingel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-19 00:00:00.000000000 Z
11
+ date: 2013-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -141,14 +141,25 @@ files:
141
141
  - test/dummy/tmp/cache/assets/development/sprockets/b1a87f7961214599041bb9b30c8e398e
142
142
  - test/dummy/tmp/cache/assets/development/sprockets/c903f846849a6d4c555eaf82468a7e6e
143
143
  - test/dummy/tmp/cache/assets/test/sprockets/0ff3a9241bbf1c751ced680adfa90b59
144
+ - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
144
145
  - test/dummy/tmp/cache/assets/test/sprockets/1feb7eec1529672092299032ef2d6325
145
146
  - test/dummy/tmp/cache/assets/test/sprockets/2dc95e0e7e3281df7eb8e26fbb8a3a59
147
+ - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
148
+ - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
149
+ - test/dummy/tmp/cache/assets/test/sprockets/4b80185accc9f177df86a2b2ac568037
146
150
  - test/dummy/tmp/cache/assets/test/sprockets/72881d4d0eb1a7d61ba5420798add236
151
+ - test/dummy/tmp/cache/assets/test/sprockets/82f15f6307d6bf854aa667d5bf7dab65
147
152
  - test/dummy/tmp/cache/assets/test/sprockets/ab1417852e512b0f0f50fbdc19d1f890
148
153
  - test/dummy/tmp/cache/assets/test/sprockets/b1a87f7961214599041bb9b30c8e398e
154
+ - test/dummy/tmp/cache/assets/test/sprockets/b500214ce5dd829b8f3c9cac82a47d63
149
155
  - test/dummy/tmp/cache/assets/test/sprockets/bf0ff79f1edd27152fd4681650468a43
150
156
  - test/dummy/tmp/cache/assets/test/sprockets/c903f846849a6d4c555eaf82468a7e6e
157
+ - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
158
+ - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
159
+ - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
160
+ - test/dummy/tmp/cache/assets/test/sprockets/fad8c804fcf999759c994f14abdf33f3
151
161
  - test/helpers/rails_db_info/tables_helper_test.rb
162
+ - test/integration/catch_all_routes_test.rb
152
163
  - test/integration/navigation_test.rb
153
164
  - test/rails_db_info_test.rb
154
165
  - test/test_helper.rb
@@ -222,14 +233,25 @@ test_files:
222
233
  - test/dummy/tmp/cache/assets/development/sprockets/b1a87f7961214599041bb9b30c8e398e
223
234
  - test/dummy/tmp/cache/assets/development/sprockets/c903f846849a6d4c555eaf82468a7e6e
224
235
  - test/dummy/tmp/cache/assets/test/sprockets/0ff3a9241bbf1c751ced680adfa90b59
236
+ - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
225
237
  - test/dummy/tmp/cache/assets/test/sprockets/1feb7eec1529672092299032ef2d6325
226
238
  - test/dummy/tmp/cache/assets/test/sprockets/2dc95e0e7e3281df7eb8e26fbb8a3a59
239
+ - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
240
+ - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
241
+ - test/dummy/tmp/cache/assets/test/sprockets/4b80185accc9f177df86a2b2ac568037
227
242
  - test/dummy/tmp/cache/assets/test/sprockets/72881d4d0eb1a7d61ba5420798add236
243
+ - test/dummy/tmp/cache/assets/test/sprockets/82f15f6307d6bf854aa667d5bf7dab65
228
244
  - test/dummy/tmp/cache/assets/test/sprockets/ab1417852e512b0f0f50fbdc19d1f890
229
245
  - test/dummy/tmp/cache/assets/test/sprockets/b1a87f7961214599041bb9b30c8e398e
246
+ - test/dummy/tmp/cache/assets/test/sprockets/b500214ce5dd829b8f3c9cac82a47d63
230
247
  - test/dummy/tmp/cache/assets/test/sprockets/bf0ff79f1edd27152fd4681650468a43
231
248
  - test/dummy/tmp/cache/assets/test/sprockets/c903f846849a6d4c555eaf82468a7e6e
249
+ - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
250
+ - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
251
+ - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
252
+ - test/dummy/tmp/cache/assets/test/sprockets/fad8c804fcf999759c994f14abdf33f3
232
253
  - test/helpers/rails_db_info/tables_helper_test.rb
254
+ - test/integration/catch_all_routes_test.rb
233
255
  - test/integration/navigation_test.rb
234
256
  - test/rails_db_info_test.rb
235
257
  - test/test_helper.rb