graphiql-rails 1.0.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 (67) hide show
  1. checksums.yaml +7 -0
  2. data/app/assets/javascripts/graphiql/rails/application.js +4 -0
  3. data/app/assets/javascripts/graphiql/rails/fetch-0.10.1.js +381 -0
  4. data/app/assets/javascripts/graphiql/rails/graphiql-0.4.5.js +25949 -0
  5. data/app/assets/javascripts/graphiql/rails/react-0.14.4.js +18796 -0
  6. data/app/assets/javascripts/graphiql/rails/react-dom-0.14.4.js +42 -0
  7. data/app/assets/stylesheets/graphiql/rails/application.css +3 -0
  8. data/app/assets/stylesheets/graphiql/rails/graphiql-0.4.5.css +1129 -0
  9. data/app/controllers/graphiql/rails/editors_controller.rb +13 -0
  10. data/app/views/graphiql/rails/editors/show.html.erb +82 -0
  11. data/config/routes.rb +3 -0
  12. data/lib/graphiql/rails/engine.rb +7 -0
  13. data/lib/graphiql/rails/version.rb +5 -0
  14. data/lib/graphiql/rails/welcome_message.rb +19 -0
  15. data/lib/graphiql/rails.rb +23 -0
  16. data/readme.md +42 -0
  17. data/test/controllers/editors_controller_test.rb +45 -0
  18. data/test/dummy/config/application.rb +15 -0
  19. data/test/dummy/config/boot.rb +3 -0
  20. data/test/dummy/config/environment.rb +5 -0
  21. data/test/dummy/config/environments/development.rb +41 -0
  22. data/test/dummy/config/environments/production.rb +79 -0
  23. data/test/dummy/config/environments/test.rb +42 -0
  24. data/test/dummy/config/routes.rb +3 -0
  25. data/test/dummy/config/secrets.yml +22 -0
  26. data/test/dummy/config.ru +4 -0
  27. data/test/dummy/log/test.log +255 -0
  28. data/test/dummy/tmp/cache/sprockets/v3.0/1ODY0DQ_ANmCpmLHVw-UiUNedcqRH6ImiwraD-KSxmU.cache +0 -0
  29. data/test/dummy/tmp/cache/sprockets/v3.0/1War8wEt1WB20cDivlUtmLJerXVjqviIoF8z6rqT8Ks.cache +1 -0
  30. data/test/dummy/tmp/cache/sprockets/v3.0/4afUNpWO5PKPxu8ou16ONcr5t-fGUZ2Shr4G8Df72YA.cache +0 -0
  31. data/test/dummy/tmp/cache/sprockets/v3.0/4uKBwHz0rzsw3ojNBNu9y5_uCi8J-R25B-ulDbod0ac.cache +1 -0
  32. data/test/dummy/tmp/cache/sprockets/v3.0/6L5bwqSkEwSagAwfXFO_BHlhr-_mvwg_lgpT3A3JbN0.cache +0 -0
  33. data/test/dummy/tmp/cache/sprockets/v3.0/9WBVwGkXlR0wCsNKUohikZZp8DR2hCht4PC4HgUpVtE.cache +1 -0
  34. data/test/dummy/tmp/cache/sprockets/v3.0/D6JFGS9ijELU5G9m1CfXCX8rWJkohiAMkuv8YC6xUjw.cache +2 -0
  35. data/test/dummy/tmp/cache/sprockets/v3.0/F5qrQYWr9yyxwBAqe2TQJQ80nVmH5_i6afl5PMp6Z8U.cache +1 -0
  36. data/test/dummy/tmp/cache/sprockets/v3.0/FBkf4qNXTD-K2DutfFs6Zf9i5H9hjdJloZPy1grMXAE.cache +2 -0
  37. data/test/dummy/tmp/cache/sprockets/v3.0/KdaFp_G3QwcgCbdUZsL9ERPiz2zPHLWUhEnEQ9unDEk.cache +2 -0
  38. data/test/dummy/tmp/cache/sprockets/v3.0/LW2Js2OuBRJvwb8wIDyZiUmxDiktnV0klq55abg8Yvc.cache +0 -0
  39. data/test/dummy/tmp/cache/sprockets/v3.0/QFCa105_BZXNgKGSe-v9Jf_AvhbTDjIkGQGzEb-Vy30.cache +2 -0
  40. data/test/dummy/tmp/cache/sprockets/v3.0/T86TPGUlBfOM9KZj9oYg6ixlwd0tHGUCJutAZFY1gCU.cache +1 -0
  41. data/test/dummy/tmp/cache/sprockets/v3.0/TGrsg_69egMpvuFwg0oH2vvET7aA-FRmlCjoLRIydHc.cache +0 -0
  42. data/test/dummy/tmp/cache/sprockets/v3.0/UYTk5zEFerusuYX_FIGABGYtIFVy570hoqVn6fp4Hf0.cache +1 -0
  43. data/test/dummy/tmp/cache/sprockets/v3.0/VbHRo0ICd88LdUrVUQR8ZJqMqH1IObHIAWqbecGFZ6Q.cache +1 -0
  44. data/test/dummy/tmp/cache/sprockets/v3.0/WtewLeu-yAjYJXYBEdyWkiz1hMDrx_bY3cX9n2AjPDg.cache +1 -0
  45. data/test/dummy/tmp/cache/sprockets/v3.0/WwJ37E-kUxtDgxvSx_3O5YaHEoWJftzFzuNSGXIlsaI.cache +2 -0
  46. data/test/dummy/tmp/cache/sprockets/v3.0/Yz7xid4a42sQZ3rupYo5gpJ9oip15QSrXsaEsgCWMiE.cache +1 -0
  47. data/test/dummy/tmp/cache/sprockets/v3.0/Z7xvl4QQk2iWzQ22z2eYhPN2nmaKmistpZEnfcbseII.cache +0 -0
  48. data/test/dummy/tmp/cache/sprockets/v3.0/ZRl7-s5kXR-yC2mcuDoSOpLrt84TlvO5s-cYh9dPz14.cache +1 -0
  49. data/test/dummy/tmp/cache/sprockets/v3.0/cL6ZrXE1HfAZSwt39igMHt_vxShjSAAd2VzP2XmFjmw.cache +1 -0
  50. data/test/dummy/tmp/cache/sprockets/v3.0/dKvwS0jAbddDiur_8v76DBm-vIYC10o0GRKZETpSAR8.cache +1 -0
  51. data/test/dummy/tmp/cache/sprockets/v3.0/eRGERGKDp2NYy2HoC_meEQGqDi19WjrGxu2nnaGIcuA.cache +2 -0
  52. data/test/dummy/tmp/cache/sprockets/v3.0/fr6QWODYhpQ8atcpXcDO6v5h6BOarqt8SKw2FSPznCA.cache +1 -0
  53. data/test/dummy/tmp/cache/sprockets/v3.0/hQiz6pgkjKTcBzpg6HxImHPEn_gJnNexHa93Uqf06C4.cache +1 -0
  54. data/test/dummy/tmp/cache/sprockets/v3.0/hZjnBRtszTef59Um5ZCsKPKni61XffqsmNbcFyEHt18.cache +0 -0
  55. data/test/dummy/tmp/cache/sprockets/v3.0/k8dK469Rg8A3Vy6LuTNHpwXi-DL1q9hU1ycx5Wepy0o.cache +1 -0
  56. data/test/dummy/tmp/cache/sprockets/v3.0/kNn8zrGAYzFMb9nV4jNn_hIWuRyRyf2WwQ0PJNNitDc.cache +2 -0
  57. data/test/dummy/tmp/cache/sprockets/v3.0/o67fWawCsaNbsqQ_0cc88iV6xiIrMvkkAWNbVL0f2PQ.cache +1 -0
  58. data/test/dummy/tmp/cache/sprockets/v3.0/r1BfxqwrxBJjF2iyMWPpMrJJ4x3id-oue7o_4u4Gs88.cache +0 -0
  59. data/test/dummy/tmp/cache/sprockets/v3.0/urFQAPpM6EpglGPluq2htIfR2Xyj38lKiU9yZcyQDlk.cache +0 -0
  60. data/test/dummy/tmp/cache/sprockets/v3.0/vHuLTiNtDGbZ0WmXVRXzE9sjC1uytC3VHPfIsJjWPXI.cache +1 -0
  61. data/test/dummy/tmp/cache/sprockets/v3.0/xJGUXwL_WUBjqcf8fWNmNx7AJfGg-KPJqE5kVwPZg68.cache +1 -0
  62. data/test/dummy/tmp/cache/sprockets/v3.0/yLVqhPCNcVTbpUt7K66-E4rXgH9sPDxfNXqMWF_eM44.cache +2 -0
  63. data/test/dummy/tmp/cache/sprockets/v3.0/yjDlbfNxhC1OMh3gMlUezFGgrplZ0G80J6ury8BWdHk.cache +2 -0
  64. data/test/graphiql/rails/engine_test.rb +7 -0
  65. data/test/graphiql/rails_test.rb +12 -0
  66. data/test/test_helper.rb +12 -0
  67. metadata +258 -0
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ mount GraphiQL::Rails::Engine, at: "/graphiql", graphql_path: "/my/graphql/endpoint"
3
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 78457268f3f9b0c3efa88ac47c71f8277dd1723a5d406ac9e81aa1d179c7881200fdc23ee1d2be84887fb18490c380563d4a009eb887829ec0309d00208a7a7f
15
+
16
+ test:
17
+ secret_key_base: 79a80a1136851a8ca2823ddb922c3827d8f728bc223a1e713313d919116b5b34ebf28dcd553f3bde35ff27e5c35bcdb93782e61c02d1b493390b4f0aa9767858
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
@@ -0,0 +1,255 @@
1
+  (0.1ms) begin transaction
2
+ ---------------------------------------------
3
+ GraphiQLControllerTest: test_should_get_index
4
+ ---------------------------------------------
5
+  (0.1ms) rollback transaction
6
+ -------------------------------------------------------------
7
+ GraphiQL::Rails::GraphiQLControllerTest: test_should_get_show
8
+ -------------------------------------------------------------
9
+ ------------------------------
10
+ EngineTest: test_it_is_defined
11
+ ------------------------------
12
+ ------------------------------
13
+ EngineTest: test_it_is_defined
14
+ ------------------------------
15
+ -------------------------------------------------------------
16
+ GraphiQL::Rails::GraphiQLControllerTest: test_should_get_show
17
+ -------------------------------------------------------------
18
+ ------------------------------
19
+ EngineTest: test_it_is_defined
20
+ ------------------------------
21
+ -------------------------------------------------------------
22
+ GraphiQL::Rails::GraphiQLControllerTest: test_should_get_show
23
+ -------------------------------------------------------------
24
+ Processing by GraphiQL::Rails::GraphiQLController#show as HTML
25
+ Completed 500 Internal Server Error in 14ms
26
+ ------------------------------
27
+ EngineTest: test_it_is_defined
28
+ ------------------------------
29
+ -------------------------------------------------------------
30
+ GraphiQL::Rails::GraphiqlControllerTest: test_should_get_show
31
+ -------------------------------------------------------------
32
+ Processing by GraphiQL::Rails::GraphiqlController#show as HTML
33
+ Completed 500 Internal Server Error in 8ms
34
+ ------------------------------
35
+ EngineTest: test_it_is_defined
36
+ ------------------------------
37
+ ------------------------------------------------------------
38
+ GraphiQL::Rails::EditorsControllerTest: test_should_get_show
39
+ ------------------------------------------------------------
40
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
41
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphi_ql/rails/editors/show.html.erb (2.5ms)
42
+ Completed 200 OK in 9ms (Views: 9.2ms)
43
+ ------------------------------
44
+ EngineTest: test_it_is_defined
45
+ ------------------------------
46
+ ------------------------------------------------------------
47
+ GraphiQL::Rails::EditorsControllerTest: test_should_get_show
48
+ ------------------------------------------------------------
49
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
50
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphi_ql/rails/editors/show.html.erb (1.0ms)
51
+ Completed 200 OK in 9ms (Views: 9.2ms)
52
+ ------------------------------------------------------------
53
+ GraphiQL::Rails::EditorsControllerTest: test_should_get_show
54
+ ------------------------------------------------------------
55
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
56
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphi_ql/rails/editors/show.html.erb (1.7ms)
57
+ Completed 200 OK in 14ms (Views: 13.4ms)
58
+ ------------------------------
59
+ EngineTest: test_it_is_defined
60
+ ------------------------------
61
+ ------------------------------------------------------------
62
+ GraphiQL::Rails::EditorsControllerTest: test_should_get_show
63
+ ------------------------------------------------------------
64
+ ------------------------------
65
+ EngineTest: test_it_is_defined
66
+ ------------------------------
67
+ ------------------------------------------------------------
68
+ GraphiQL::Rails::EditorsControllerTest: test_should_get_show
69
+ ------------------------------------------------------------
70
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
71
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphi_ql/rails/editors/show.html.erb (5.1ms)
72
+ Completed 500 Internal Server Error in 12ms
73
+ ------------------------------
74
+ EngineTest: test_it_is_defined
75
+ ------------------------------
76
+ ------------------------------------------------------------
77
+ GraphiQL::Rails::EditorsControllerTest: test_should_get_show
78
+ ------------------------------------------------------------
79
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
80
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphi_ql/rails/editors/show.html.erb (3.3ms)
81
+ Completed 500 Internal Server Error in 10ms
82
+ ------------------------------
83
+ EngineTest: test_it_is_defined
84
+ ------------------------------
85
+ ------------------------------------------------------------
86
+ GraphiQL::Rails::EditorsControllerTest: test_should_get_show
87
+ ------------------------------------------------------------
88
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
89
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphi_ql/rails/editors/show.html.erb (7.3ms)
90
+ Completed 500 Internal Server Error in 14ms
91
+ ------------------------------
92
+ EngineTest: test_it_is_defined
93
+ ------------------------------
94
+ ------------------------------
95
+ EngineTest: test_it_is_defined
96
+ ------------------------------
97
+ ------------------------------------------------------------
98
+ GraphiQL::Rails::EditorsControllerTest: test_should_get_show
99
+ ------------------------------------------------------------
100
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
101
+ Parameters: {"graphql_path"=>"/my/endpoint"}
102
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphi_ql/rails/editors/show.html.erb (8.0ms)
103
+ Completed 500 Internal Server Error in 16ms
104
+ ------------------------------------------------------------
105
+ GraphiQL::Rails::EditorsControllerTest: test_should_get_show
106
+ ------------------------------------------------------------
107
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
108
+ Parameters: {"graphql_path"=>"/my/endpoint"}
109
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphi_ql/rails/editors/show.html.erb (1.2ms)
110
+ Completed 200 OK in 9ms (Views: 9.0ms)
111
+ ------------------------------
112
+ EngineTest: test_it_is_defined
113
+ ------------------------------
114
+ ------------------------------
115
+ EngineTest: test_it_is_defined
116
+ ------------------------------
117
+ ------------------------------------------------------------
118
+ GraphiQL::Rails::EditorsControllerTest: test_should_get_show
119
+ ------------------------------------------------------------
120
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
121
+ Parameters: {"graphql_path"=>"/my/endpoint"}
122
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphi_ql/rails/editors/show.html.erb (499.1ms)
123
+ Completed 200 OK in 508ms (Views: 507.7ms)
124
+ ------------------------------
125
+ EngineTest: test_it_is_defined
126
+ ------------------------------
127
+ ------------------------------------------------------------
128
+ GraphiQL::Rails::EditorsControllerTest: test_should_get_show
129
+ ------------------------------------------------------------
130
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
131
+ Parameters: {"graphql_path"=>"/my/endpoint"}
132
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphi_ql/rails/editors/show.html.erb (151.5ms)
133
+ Completed 200 OK in 160ms (Views: 159.7ms)
134
+ ------------------------------
135
+ EngineTest: test_it_is_defined
136
+ ------------------------------
137
+ ------------------------------------------------------------
138
+ GraphiQL::Rails::EditorsControllerTest: test_should_get_show
139
+ ------------------------------------------------------------
140
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
141
+ Parameters: {"graphql_path"=>"/my/endpoint"}
142
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphi_ql/rails/editors/show.html.erb (166.0ms)
143
+ Completed 200 OK in 174ms (Views: 173.5ms)
144
+ ------------------------------------------------------------
145
+ GraphiQL::Rails::EditorsControllerTest: test_should_get_show
146
+ ------------------------------------------------------------
147
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
148
+ Parameters: {"graphql_path"=>"/my/endpoint"}
149
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphi_ql/rails/editors/show.html.erb (150.2ms)
150
+ Completed 200 OK in 160ms (Views: 159.5ms)
151
+ ------------------------------
152
+ EngineTest: test_it_is_defined
153
+ ------------------------------
154
+ ------------------------------
155
+ EngineTest: test_it_is_defined
156
+ ------------------------------
157
+ ------------------------------------------------------------
158
+ GraphiQL::Rails::EditorsControllerTest: test_should_get_show
159
+ ------------------------------------------------------------
160
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
161
+ Parameters: {"graphql_path"=>"/my/endpoint"}
162
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphi_ql/rails/editors/show.html.erb (159.1ms)
163
+ Completed 200 OK in 167ms (Views: 167.2ms)
164
+ ------------------------------------------------------------
165
+ GraphiQL::Rails::EditorsControllerTest: test_should_get_show
166
+ ------------------------------------------------------------
167
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
168
+ Parameters: {"graphql_path"=>"/my/endpoint"}
169
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphiql/rails/editors/show.html.erb (166.3ms)
170
+ Completed 200 OK in 176ms (Views: 176.0ms)
171
+ ------------------------------
172
+ EngineTest: test_it_is_defined
173
+ ------------------------------
174
+ --------------------------------------------
175
+ GraphiQL::RailsTest: test_configs_can_be_set
176
+ --------------------------------------------
177
+ -------------------------------------------------------------------------
178
+ GraphiQL::Rails::EditorsControllerTest: test_it_uses_initial_query_config
179
+ -------------------------------------------------------------------------
180
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
181
+ Parameters: {"graphql_path"=>"/my/endpoint"}
182
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphiql/rails/editors/show.html.erb (157.2ms)
183
+ Completed 200 OK in 170ms (Views: 170.0ms)
184
+ -------------------------------------------------------------
185
+ GraphiQL::Rails::EditorsControllerTest: test_renders_GraphiQL
186
+ -------------------------------------------------------------
187
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
188
+ Parameters: {"graphql_path"=>"/my/endpoint"}
189
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphiql/rails/editors/show.html.erb (0.6ms)
190
+ Completed 200 OK in 1ms (Views: 0.9ms)
191
+ --------------------------------------------
192
+ GraphiQL::RailsTest: test_configs_can_be_set
193
+ --------------------------------------------
194
+ ------------------------------
195
+ EngineTest: test_it_is_defined
196
+ ------------------------------
197
+ --------------------------------------------
198
+ GraphiQL::RailsTest: test_configs_can_be_set
199
+ --------------------------------------------
200
+ ------------------------------
201
+ EngineTest: test_it_is_defined
202
+ ------------------------------
203
+ -------------------------------------------------------------------------
204
+ GraphiQL::Rails::EditorsControllerTest: test_it_uses_initial_query_config
205
+ -------------------------------------------------------------------------
206
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
207
+ Parameters: {"graphql_path"=>"/my/endpoint"}
208
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphiql/rails/editors/show.html.erb (160.1ms)
209
+ Completed 200 OK in 168ms (Views: 167.8ms)
210
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
211
+ Parameters: {"graphql_path"=>"/my/endpoint"}
212
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphiql/rails/editors/show.html.erb (0.7ms)
213
+ Completed 200 OK in 1ms (Views: 1.1ms)
214
+ -------------------------------------------------------------
215
+ GraphiQL::Rails::EditorsControllerTest: test_renders_GraphiQL
216
+ -------------------------------------------------------------
217
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
218
+ Parameters: {"graphql_path"=>"/my/endpoint"}
219
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphiql/rails/editors/show.html.erb (0.6ms)
220
+ Completed 200 OK in 1ms (Views: 1.0ms)
221
+ --------------------------------------------
222
+ GraphiQL::RailsTest: test_configs_can_be_set
223
+ --------------------------------------------
224
+ ------------------------------
225
+ EngineTest: test_it_is_defined
226
+ ------------------------------
227
+ -------------------------------------------------------------
228
+ GraphiQL::Rails::EditorsControllerTest: test_renders_GraphiQL
229
+ -------------------------------------------------------------
230
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
231
+ Parameters: {"graphql_path"=>"/my/endpoint"}
232
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphiql/rails/editors/show.html.erb (159.5ms)
233
+ Completed 200 OK in 167ms (Views: 166.9ms)
234
+ ------------------------------------------------------------------------
235
+ GraphiQL::Rails::EditorsControllerTest: test_it_uses_query_params_config
236
+ ------------------------------------------------------------------------
237
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
238
+ Parameters: {"graphql_path"=>"/my/endpoint"}
239
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphiql/rails/editors/show.html.erb (0.8ms)
240
+ Completed 200 OK in 1ms (Views: 1.1ms)
241
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
242
+ Parameters: {"graphql_path"=>"/my/endpoint"}
243
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphiql/rails/editors/show.html.erb (0.8ms)
244
+ Completed 200 OK in 1ms (Views: 1.0ms)
245
+ -------------------------------------------------------------------------
246
+ GraphiQL::Rails::EditorsControllerTest: test_it_uses_initial_query_config
247
+ -------------------------------------------------------------------------
248
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
249
+ Parameters: {"graphql_path"=>"/my/endpoint"}
250
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphiql/rails/editors/show.html.erb (0.8ms)
251
+ Completed 200 OK in 1ms (Views: 1.1ms)
252
+ Processing by GraphiQL::Rails::EditorsController#show as HTML
253
+ Parameters: {"graphql_path"=>"/my/endpoint"}
254
+ Rendered /Users/rmosolgo/projects/graphiql-rails/app/views/graphiql/rails/editors/show.html.erb (0.6ms)
255
+ Completed 200 OK in 1ms (Views: 0.8ms)
@@ -0,0 +1 @@
1
+ I"�/Users/rmosolgo/projects/graphiql-rails/app/assets/stylesheets/graphiql/rails/application.css?type=text/css&id=be6273139de11ef8f8df8d284284bc6ba70d7b9b5e68c007328e9ff90ab24920:ET
@@ -0,0 +1 @@
1
+ "%� �e����Q�]�_�.�@6�����0$mX
@@ -0,0 +1 @@
1
+ I"�/Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/fetch-0.10.1.js?type=application/javascript&pipeline=self&id=520968c5a3ded8ec0f5cb55763a2a76180031dbdc1d08afaefdde074949ac127:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"rfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/graphiql-0.4.5.js;TT
@@ -0,0 +1 @@
1
+ "%��}��C}���<�Z�$��C $Bv2[���
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"ofile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"pfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/react-0.14.4.js;TTI"tfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/react-dom-0.14.4.js;TTI"pfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/fetch-0.10.1.js;TTI"rfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/graphiql-0.4.5.js;TTI"`file-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails;TTI"mfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/react-0.14.4;TTI"qfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/react-dom-0.14.4;TTI"mfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/fetch-0.10.1;TTI"ofile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/graphiql-0.4.5;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"pfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/react-0.14.4.js;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ofile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/application.js;TTI"`file-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails;TTI"mfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/react-0.14.4;TTI"pfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/react-0.14.4.js;TTI"qfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/react-dom-0.14.4;TTI"tfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/react-dom-0.14.4.js;TTI"mfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/fetch-0.10.1;TTI"pfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/fetch-0.10.1.js;TTI"ofile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/graphiql-0.4.5;TTI"rfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/graphiql-0.4.5.js;TT
@@ -0,0 +1 @@
1
+ I"�/Users/rmosolgo/projects/graphiql-rails/app/assets/stylesheets/graphiql/rails/application.css?type=text/css&pipeline=self&id=dc3a97505d31498757d358f6b08fb0ff50ce157fd647758e35c13b255ec3dc23:ET
@@ -0,0 +1 @@
1
+ I"�/Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/graphiql-0.4.5.js?type=application/javascript&pipeline=self&id=c39d18c9ed1c6c89602c3e14f49b9b655839681d03adb97b9ee590ff4e5ce2a2:ET
@@ -0,0 +1 @@
1
+ "%��oq�6i}m�R�b ���g��>���� �3*
@@ -0,0 +1 @@
1
+ I"�/Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/application.js?type=application/javascript&id=50511c4e009277b3f681b2a9b16656d909c17e69c957975f773590965edf1ab8:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"tfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/react-dom-0.14.4.js;TT
@@ -0,0 +1 @@
1
+ I"�/Users/rmosolgo/projects/graphiql-rails/app/assets/stylesheets/graphiql/rails/graphiql-0.4.5.css?type=text/css&pipeline=self&id=6b990d48dd5da489cbdf1e83642d2339921f7ae6062013b44b61b10bf41e8bae:ET
@@ -0,0 +1 @@
1
+ "%#aQ\�M�K�=^F]-Bc@��]��*�9�%#݅Lq
@@ -0,0 +1 @@
1
+ I"�/Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/react-dom-0.14.4.js?type=application/javascript&pipeline=self&id=2da53ec07f15a1bdf9b3897a0855dd180b941f471818bc4c27153d7c4c271396:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"sfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/stylesheets/graphiql/rails/graphiql-0.4.5.css;TT
@@ -0,0 +1 @@
1
+ "%�O���(l��P��sqSc^Z)��"t�d�{��
@@ -0,0 +1 @@
1
+ "%�7�pȖ�w�A�O��;z"w�}M�8o�iҵ�}
@@ -0,0 +1 @@
1
+ I"�/Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/application.js?type=application/javascript&pipeline=self&id=31937301c53ca698d0409a73ac94784fa3e4b17a8835c8ca7c53b2c8202293b1:ET
@@ -0,0 +1 @@
1
+ I"�/Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/react-0.14.4.js?type=application/javascript&pipeline=self&id=2a6c1e8eb9f37d69b0a3426b462a8df233cf4939b1f1eb107437629887ef085f:ET
@@ -0,0 +1 @@
1
+ "%]׉�\`r����Aa`S�"��[n���[7��|�
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"pfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/javascripts/graphiql/rails/fetch-0.10.1.js;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"pfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/stylesheets/graphiql/rails/application.css;TTI"`file-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/stylesheets/graphiql/rails;TTI"ofile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/stylesheets/graphiql/rails/graphiql-0.4.5;TTI"sfile-digest:///Users/rmosolgo/projects/graphiql-rails/app/assets/stylesheets/graphiql/rails/graphiql-0.4.5.css;TT
@@ -0,0 +1,7 @@
1
+ require "test_helper"
2
+
3
+ class EngineTest < ActiveSupport::TestCase
4
+ test "it is defined" do
5
+ assert GraphiQL::Rails::Engine
6
+ end
7
+ end
@@ -0,0 +1,12 @@
1
+ require "test_helper"
2
+
3
+ module GraphiQL
4
+ class RailsTest < ActiveSupport::TestCase
5
+ test "configs can be set" do
6
+ refute GraphiQL::Rails.config.query_params
7
+ GraphiQL::Rails.config.query_params = true
8
+ assert GraphiQL::Rails.config.query_params
9
+ GraphiQL::Rails.config.query_params = false
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require "codeclimate-test-reporter"
2
+ CodeClimate::TestReporter.start
3
+
4
+ ENV["RAILS_ENV"] = "test"
5
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
6
+ require "rails/test_help"
7
+ require "rails/generators"
8
+ require 'minitest/mock'
9
+
10
+ Rails.backtrace_cleaner.remove_silencers!
11
+
12
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }