analytics-rails 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -8
  3. data/lib/analytics-rails.rb +0 -3
  4. data/lib/analytics/rails/version.rb +1 -1
  5. data/test/dummy/README.rdoc +15 -248
  6. data/test/dummy/Rakefile +0 -1
  7. data/test/dummy/app/assets/javascripts/application.js +3 -5
  8. data/test/dummy/app/controllers/application_controller.rb +3 -1
  9. data/test/dummy/bin/bundle +3 -0
  10. data/test/dummy/bin/rails +4 -0
  11. data/test/dummy/bin/rake +4 -0
  12. data/test/dummy/config.ru +1 -1
  13. data/test/dummy/config/application.rb +2 -34
  14. data/test/dummy/config/boot.rb +4 -9
  15. data/test/dummy/config/environment.rb +2 -2
  16. data/test/dummy/config/environments/development.rb +10 -15
  17. data/test/dummy/config/environments/production.rb +40 -30
  18. data/test/dummy/config/environments/test.rb +13 -11
  19. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  20. data/test/dummy/config/initializers/inflections.rb +6 -5
  21. data/test/dummy/config/initializers/secret_token.rb +7 -2
  22. data/test/dummy/config/initializers/session_store.rb +0 -5
  23. data/test/dummy/config/initializers/wrap_parameters.rb +6 -6
  24. data/test/dummy/config/locales/en.yml +20 -2
  25. data/test/dummy/config/routes.rb +22 -24
  26. data/test/dummy/db/development.sqlite3 +0 -0
  27. data/test/dummy/db/schema.rb +16 -0
  28. data/test/dummy/log/development.log +8 -176
  29. data/test/dummy/log/test.log +19 -182
  30. data/test/dummy/public/404.html +43 -11
  31. data/test/dummy/public/422.html +43 -11
  32. data/test/dummy/public/500.html +43 -11
  33. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  34. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  35. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  36. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  37. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  38. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  39. data/test/include_tag_test.rb +3 -3
  40. data/test/test_helper.rb +6 -0
  41. metadata +12 -32
  42. data/test/dummy/script/rails +0 -6
  43. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  44. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  45. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  46. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  47. data/test/dummy/tmp/cache/assets/D9B/E00/sprockets%2Fb66a75bd10bef6da5f16f4fa9113926c +0 -0
  48. data/test/dummy/tmp/cache/assets/DAC/650/sprockets%2Ff8ec2e25f819797cb9a491d0af22ae9b +0 -0
  49. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  50. data/test/dummy/tmp/cache/assets/DEF/100/sprockets%2F8b9d88bfa8f8eed7910469ef2ab8a8c7 +0 -0
  51. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  52. data/test/dummy/tmp/cache/assets/E29/AA0/sprockets%2F6eaab4ab4dbae1b8b5a6f9286aa966d4 +0 -0
  53. data/test/dummy/tmp/cache/assets/test/sprockets/6ee31c758c2207128f3b2fb9f1e7fc1c +0 -0
  54. data/test/dummy/tmp/cache/assets/test/sprockets/78bbdd3d4b68f961ea76c51d172aec6b +0 -0
  55. data/test/dummy/tmp/cache/assets/test/sprockets/c7342e04b6a4ad6af1bb72c5c094c804 +0 -0
  56. data/test/dummy/tmp/cache/assets/test/sprockets/f09692c097713119fa701a4122205808 +0 -0
@@ -1,189 +1,26 @@
1
- Connecting to database specified by database.yml
2
-  (0.2ms) begin transaction
3
-  (0.1ms) rollback transaction
4
-  (0.0ms) begin transaction
5
- Started GET "/" for 127.0.0.1 at 2013-04-01 14:50:44 -0300
6
- Processing by StaticsController#home as HTML
7
- Rendered statics/home.html.erb within layouts/application (12.6ms)
8
- Completed 200 OK in 34ms (Views: 33.5ms | ActiveRecord: 0.0ms)
9
-  (0.1ms) rollback transaction
10
- Connecting to database specified by database.yml
11
-  (0.2ms) begin transaction
12
-  (0.0ms) rollback transaction
13
-  (0.1ms) begin transaction
14
- Started GET "/" for 127.0.0.1 at 2013-04-01 14:52:45 -0300
15
- Processing by StaticsController#home as HTML
16
- Rendered statics/home.html.erb within layouts/application (3.0ms)
17
- Completed 200 OK in 18ms (Views: 17.2ms | ActiveRecord: 0.0ms)
18
-  (0.1ms) rollback transaction
19
- Connecting to database specified by database.yml
20
-  (0.2ms) begin transaction
21
-  (0.1ms) rollback transaction
22
-  (0.1ms) begin transaction
23
- Started GET "/" for 127.0.0.1 at 2013-04-01 14:52:57 -0300
24
- Processing by StaticsController#home as HTML
25
- Rendered statics/home.html.erb within layouts/application (2.8ms)
26
- Completed 200 OK in 17ms (Views: 17.0ms | ActiveRecord: 0.0ms)
27
-  (0.1ms) rollback transaction
28
- Connecting to database specified by database.yml
29
-  (0.2ms) begin transaction
30
-  (0.0ms) rollback transaction
31
-  (0.1ms) begin transaction
32
- Started GET "/" for 127.0.0.1 at 2013-04-01 14:55:05 -0300
33
- Processing by StaticsController#home as HTML
34
- Rendered statics/home.html.erb within layouts/application (3.0ms)
35
- Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.0ms)
36
-  (0.1ms) rollback transaction
37
- Connecting to database specified by database.yml
38
-  (0.2ms) begin transaction
39
-  (0.0ms) rollback transaction
40
-  (0.1ms) begin transaction
41
- Started GET "/" for 127.0.0.1 at 2013-04-01 14:55:58 -0300
42
- Processing by StaticsController#home as HTML
43
- Rendered statics/home.html.erb within layouts/application (3.0ms)
44
- Completed 200 OK in 18ms (Views: 17.7ms | ActiveRecord: 0.0ms)
45
-  (0.1ms) rollback transaction
46
- Connecting to database specified by database.yml
47
-  (0.2ms) begin transaction
48
-  (0.0ms) rollback transaction
49
-  (0.1ms) begin transaction
50
- Started GET "/" for 127.0.0.1 at 2013-04-01 14:56:15 -0300
51
- Processing by StaticsController#home as HTML
52
- Rendered statics/home.html.erb within layouts/application (3.1ms)
53
- Completed 200 OK in 18ms (Views: 17.2ms | ActiveRecord: 0.0ms)
54
-  (0.1ms) rollback transaction
55
- Connecting to database specified by database.yml
56
-  (0.2ms) begin transaction
57
-  (0.0ms) rollback transaction
1
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+  (0.0ms) SELECT version FROM "schema_migrations"
4
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
58
5
   (0.1ms) begin transaction
59
- Started GET "/" for 127.0.0.1 at 2013-04-01 14:58:27 -0300
60
- Processing by StaticsController#home as HTML
61
- Rendered statics/home.html.erb within layouts/application (3.2ms)
62
- Completed 200 OK in 18ms (Views: 17.5ms | ActiveRecord: 0.0ms)
63
-  (0.1ms) rollback transaction
64
- Connecting to database specified by database.yml
65
-  (0.2ms) begin transaction
66
-  (0.0ms) rollback transaction
67
- Connecting to database specified by database.yml
68
-  (0.4ms) begin transaction
69
-  (0.1ms) rollback transaction
70
- Connecting to database specified by database.yml
71
-  (0.2ms) begin transaction
72
-  (0.0ms) rollback transaction
73
- Connecting to database specified by database.yml
74
-  (0.2ms) begin transaction
75
-  (0.0ms) rollback transaction
76
- Connecting to database specified by database.yml
77
-  (0.2ms) begin transaction
78
-  (0.0ms) rollback transaction
79
- Connecting to database specified by database.yml
80
-  (0.2ms) begin transaction
81
-  (0.0ms) rollback transaction
82
-  (0.2ms) begin transaction
83
- ------------------------------------------------
84
- AnalyticsRailsTest: test_should_show_include_tag
85
- ------------------------------------------------
86
- Started GET "/" for 127.0.0.1 at 2013-08-05 14:33:33 -0300
87
-  (0.1ms) rollback transaction
88
-  (0.2ms) begin transaction
89
- ------------------------------------------------
90
- AnalyticsRailsTest: test_should_show_include_tag
91
- ------------------------------------------------
92
- Started GET "/" for 127.0.0.1 at 2013-08-05 14:34:11 -0300
93
- Processing by PagesController#index as HTML
94
- Completed 500 Internal Server Error in 1ms
95
-  (0.1ms) rollback transaction
96
-  (0.2ms) begin transaction
97
- ------------------------------------------------
98
- AnalyticsRailsTest: test_should_show_include_tag
99
- ------------------------------------------------
100
- Started GET "/" for 127.0.0.1 at 2013-08-05 14:35:37 -0300
101
- Processing by PagesController#index as HTML
102
- Completed 500 Internal Server Error in 1ms
103
-  (0.1ms) rollback transaction
104
-  (0.2ms) begin transaction
105
- ------------------------------------------------
106
- AnalyticsRailsTest: test_should_show_include_tag
107
- ------------------------------------------------
108
- Started GET "/" for 127.0.0.1 at 2013-08-05 14:36:10 -0300
109
- Processing by PagesController#index as HTML
110
- Completed 500 Internal Server Error in 1ms
111
-  (0.1ms) rollback transaction
112
-  (0.2ms) begin transaction
113
- ------------------------------------------------
114
- AnalyticsRailsTest: test_should_show_include_tag
115
- ------------------------------------------------
116
- Started GET "/" for 127.0.0.1 at 2013-08-05 14:36:50 -0300
117
- Processing by PagesController#index as HTML
118
- Completed 500 Internal Server Error in 1ms
119
-  (0.1ms) rollback transaction
120
-  (0.2ms) begin transaction
121
- ------------------------------------------------
122
- AnalyticsRailsTest: test_should_show_include_tag
123
- ------------------------------------------------
124
- Started GET "/" for 127.0.0.1 at 2013-08-05 14:38:57 -0300
125
- Processing by PagesController#index as HTML
126
- Completed 500 Internal Server Error in 1ms
127
-  (0.1ms) rollback transaction
128
-  (0.2ms) begin transaction
129
- ------------------------------------------------
130
- AnalyticsRailsTest: test_should_show_include_tag
131
- ------------------------------------------------
132
- Started GET "/" for 127.0.0.1 at 2013-08-05 14:40:26 -0300
133
- Processing by PagesController#index as HTML
134
- Completed 500 Internal Server Error in 1ms
135
-  (0.1ms) rollback transaction
136
-  (0.2ms) begin transaction
137
- ------------------------------------------------
138
- AnalyticsRailsTest: test_should_show_include_tag
139
- ------------------------------------------------
140
- Started GET "/" for 127.0.0.1 at 2013-08-05 14:40:43 -0300
141
- Processing by PagesController#index as HTML
142
- Rendered pages/index.html.erb within layouts/application (0.4ms)
143
- Completed 200 OK in 62ms (Views: 61.1ms | ActiveRecord: 0.0ms)
144
-  (0.1ms) rollback transaction
145
-  (0.2ms) begin transaction
146
- ------------------------------------------------
147
- AnalyticsRailsTest: test_should_show_include_tag
148
- ------------------------------------------------
149
- Started GET "/" for 127.0.0.1 at 2013-08-05 14:43:19 -0300
150
- Processing by PagesController#index as HTML
151
- Rendered pages/index.html.erb within layouts/application (1.0ms)
152
- Completed 200 OK in 17ms (Views: 16.8ms | ActiveRecord: 0.0ms)
153
-  (0.1ms) rollback transaction
154
-  (0.2ms) begin transaction
155
- ------------------------------------------------
156
- AnalyticsRailsTest: test_should_show_include_tag
157
- ------------------------------------------------
158
- Started GET "/" for 127.0.0.1 at 2013-08-05 14:43:59 -0300
159
- Processing by PagesController#index as HTML
160
- Rendered pages/index.html.erb within layouts/application (0.8ms)
161
- Completed 200 OK in 14ms (Views: 13.4ms | ActiveRecord: 0.0ms)
162
-  (0.1ms) rollback transaction
163
-  (0.2ms) begin transaction
164
- ------------------------------------------------
165
- AnalyticsRailsTest: test_should_show_include_tag
166
- ------------------------------------------------
167
- Started GET "/" for 127.0.0.1 at 2013-08-05 14:44:16 -0300
6
+ --------------------------------------------
7
+ IncludeTagTest: test_should_show_include_tag
8
+ --------------------------------------------
9
+ Started GET "/" for 127.0.0.1 at 2013-08-18 21:43:20 -0300
168
10
  Processing by PagesController#index as HTML
169
11
  Rendered pages/index.html.erb within layouts/application (0.8ms)
170
- Completed 200 OK in 14ms (Views: 13.6ms | ActiveRecord: 0.0ms)
12
+ Completed 200 OK in 83ms (Views: 82.7ms | ActiveRecord: 0.0ms)
171
13
   (0.1ms) rollback transaction
172
-  (0.2ms) begin transaction
173
- ------------------------------------------------
174
- AnalyticsRailsTest: test_should_show_include_tag
175
- ------------------------------------------------
176
- Started GET "/" for 127.0.0.1 at 2013-08-05 14:47:29 -0300
177
- Processing by PagesController#index as HTML
178
- Rendered pages/index.html.erb within layouts/application (0.8ms)
179
- Completed 200 OK in 13ms (Views: 13.1ms | ActiveRecord: 0.0ms)
180
-  (0.1ms) rollback transaction
181
-  (0.2ms) begin transaction
182
- ------------------------------------------------
183
- AnalyticsRailsTest: test_should_show_include_tag
184
- ------------------------------------------------
185
- Started GET "/" for 127.0.0.1 at 2013-08-05 14:48:10 -0300
14
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
15
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
16
+  (0.0ms) SELECT version FROM "schema_migrations"
17
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
18
+  (0.1ms) begin transaction
19
+ --------------------------------------------
20
+ IncludeTagTest: test_should_show_include_tag
21
+ --------------------------------------------
22
+ Started GET "/" for 127.0.0.1 at 2013-08-18 21:43:46 -0300
186
23
  Processing by PagesController#index as HTML
187
24
  Rendered pages/index.html.erb within layouts/application (0.9ms)
188
- Completed 200 OK in 14ms (Views: 13.6ms | ActiveRecord: 0.0ms)
25
+ Completed 200 OK in 90ms (Views: 89.8ms | ActiveRecord: 0.0ms)
189
26
   (0.1ms) rollback transaction
@@ -2,17 +2,48 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
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
+ }
16
47
  </style>
17
48
  </head>
18
49
 
@@ -22,5 +53,6 @@
22
53
  <h1>The page you were looking for doesn't exist.</h1>
23
54
  <p>You may have mistyped the address or the page may have moved.</p>
24
55
  </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
25
57
  </body>
26
58
  </html>
@@ -2,17 +2,48 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
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
+ }
16
47
  </style>
17
48
  </head>
18
49
 
@@ -22,5 +53,6 @@
22
53
  <h1>The change you wanted was rejected.</h1>
23
54
  <p>Maybe you tried to change something you didn't have access to.</p>
24
55
  </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
25
57
  </body>
26
58
  </html>
@@ -2,17 +2,48 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
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
+ }
16
47
  </style>
17
48
  </head>
18
49
 
@@ -21,5 +52,6 @@
21
52
  <div class="dialog">
22
53
  <h1>We're sorry, but something went wrong.</h1>
23
54
  </div>
55
+ <p>If you are the application owner check the logs for more information.</p>
24
56
  </body>
25
57
  </html>
@@ -1,11 +1,11 @@
1
1
  require 'test_helper'
2
2
 
3
- class AnalyticsRailsTest < ActionDispatch::IntegrationTest
3
+ class IncludeTagTest < ActionDispatch::IntegrationTest
4
4
 
5
5
  test "should show include tag" do
6
6
  get '/'
7
- assert_response :success, 'request fail'
8
- assert response.body.include?("_gaq.push(['_setAccount', 'your-id']);"), 'no include tag'
7
+ assert_response :success
8
+ assert response.body.include?("_gaq.push(['_setAccount', 'your-id']);")
9
9
  end
10
10
 
11
11
  end
data/test/test_helper.rb CHANGED
@@ -13,3 +13,9 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
13
13
  if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
14
  ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
15
15
  end
16
+
17
+ # Load database
18
+ config = YAML::load(File.read(File.expand_path('../dummy/config/database.yml', __FILE__)))
19
+ config['test']['adapter'] = 'jdbcsqlite3' if RUBY_PLATFORM == 'java'
20
+ ActiveRecord::Base.establish_connection(config['test'])
21
+ load(File.expand_path('../dummy/db/schema.rb', __FILE__))