mime_fallback 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mime_fallback/mime_negotiation.rb +14 -14
- data/lib/mime_fallback/version.rb +1 -1
- data/test/dummy/app/controllers/test_controller.rb +18 -0
- data/test/dummy/app/views/test/html_only.html.erb +1 -0
- data/test/dummy/app/views/test/mobile_only.mobile.erb +1 -0
- data/test/dummy/config/application.rb +1 -1
- data/test/dummy/config/environments/test.rb +1 -1
- data/test/dummy/config/initializers/mime_types.rb +1 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/responds_test.rb +43 -0
- data/test/test_helper.rb +2 -0
- metadata +23 -40
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +0 -356
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6b36a21a75ddb9a45aa6e9133c79a3c7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c360bf7b66d29ebdf71b5814574b5fed +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e0ac75c1efdaac1b74d439c004c3b09f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ec2d15616d5d09eb1693b761c72948ce +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5b32702f752118e75b84c18aee691f19f202edb
|
4
|
+
data.tar.gz: b96b4b31ad96629b2450e026b75c76b96d334127
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4101592c81d41985edff955a1f0b8d274d365225c76fc936126af2b1b875f9ab89e88232179e9c9ae4a1fb74ea81de44c01608422506db229f5dc422225e59e9
|
7
|
+
data.tar.gz: ca041cb2cd764ac20f8a658adbc40b232dee6b1fbcbef36851b7a97fe9de7166e19bd655549af91ca6f386e1bb24a780064fb43ac0e0d98c5d35c8d5cd54cfb7
|
@@ -7,22 +7,22 @@ module ActionDispatch
|
|
7
7
|
|
8
8
|
# Override to support mime type fallbacks
|
9
9
|
def negotiate_mime(order)
|
10
|
+
# make search easier later
|
11
|
+
responding_formats = order.index_by(&:to_sym)
|
12
|
+
|
13
|
+
# formats are the request's formats
|
10
14
|
formats.each do |priority|
|
11
|
-
if priority == Mime::ALL
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
if order.include?(priority)
|
21
|
-
return priority
|
22
|
-
end
|
23
|
-
end
|
15
|
+
return order.first if priority == Mime::ALL
|
16
|
+
|
17
|
+
# Try to find an exact match to what we're responding to
|
18
|
+
types = Array(priority) + MimeFallback::Type.fallbacks(priority.to_sym)
|
19
|
+
fallback = types.detect{|type| responding_formats.has_key?(type.to_sym)}
|
20
|
+
return fallback if fallback
|
21
|
+
|
22
|
+
# we've found an exact match
|
23
|
+
return priority if responding_formats.has_key?(priority.to_sym)
|
24
24
|
end
|
25
|
-
|
25
|
+
|
26
26
|
order.include?(Mime::ALL) ? formats.first : nil
|
27
27
|
end
|
28
28
|
end
|
@@ -3,4 +3,22 @@ class TestController < ApplicationController
|
|
3
3
|
def basic
|
4
4
|
end
|
5
5
|
|
6
|
+
def responding
|
7
|
+
respond_to do |format|
|
8
|
+
format.json { render :json => {format: request.format.symbol, string: request.format.to_s} }
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def mobile_only
|
13
|
+
respond_to do |format|
|
14
|
+
format.mobile
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def html_only
|
19
|
+
respond_to do |format|
|
20
|
+
format.html
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
6
24
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<h1>HTML</h1>
|
@@ -0,0 +1 @@
|
|
1
|
+
<h1>Mobile</h1>
|
@@ -47,7 +47,7 @@ module Dummy
|
|
47
47
|
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
48
48
|
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
49
49
|
# parameters by using an attr_accessible or attr_protected declaration.
|
50
|
-
config.active_record.whitelist_attributes = true
|
50
|
+
# config.active_record.whitelist_attributes = true
|
51
51
|
|
52
52
|
# Enable the asset pipeline
|
53
53
|
config.assets.enabled = true
|
@@ -30,7 +30,7 @@ Dummy::Application.configure do
|
|
30
30
|
config.action_mailer.delivery_method = :test
|
31
31
|
|
32
32
|
# Raise exception on mass assignment protection for Active Record models
|
33
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
33
|
+
# config.active_record.mass_assignment_sanitizer = :strict
|
34
34
|
|
35
35
|
# Print deprecation notices to the stderr
|
36
36
|
config.active_support.deprecation = :stderr
|
@@ -5,6 +5,7 @@
|
|
5
5
|
# Mime::Type.register_alias "text/html", :iphone
|
6
6
|
|
7
7
|
MimeFallback::Type.register_alias "text/html", :mobile, [], :html
|
8
|
+
MimeFallback::Type.register_alias "application/json", :mobilejson, [], [:json, :js, :mobile, :html]
|
8
9
|
|
9
10
|
# Rails doesn't handle wildcard mime types, so we need to hardcode
|
10
11
|
# this as an alias to html so we don't 404.
|
data/test/dummy/config/routes.rb
CHANGED
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class RespondsTest < ActionDispatch::IntegrationTest
|
4
|
+
def test_respond_to_basic
|
5
|
+
get "/test/responding.json"
|
6
|
+
assert_response :success
|
7
|
+
resp = JSON.parse(@response.body)
|
8
|
+
assert_equal "json", resp["format"]
|
9
|
+
assert_equal "application/json", resp["string"]
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_respond_to_fallbacks
|
13
|
+
get "/test/responding.mobilejson"
|
14
|
+
assert_response :success
|
15
|
+
resp = JSON.parse(@response.body)
|
16
|
+
assert_equal "mobilejson", resp["format"]
|
17
|
+
assert_equal "application/json", resp["string"]
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_respond_to_mobile_only
|
21
|
+
get "/test/mobile_only.mobile"
|
22
|
+
assert_response :success
|
23
|
+
|
24
|
+
case Rails::VERSION::MAJOR
|
25
|
+
when 3
|
26
|
+
get "/test/mobile_only.html"
|
27
|
+
assert_response 406
|
28
|
+
else
|
29
|
+
assert_raises ActionController::UnknownFormat do
|
30
|
+
get "/test/mobile_only.html"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_respond_to_html_only_with_mobile_request
|
36
|
+
get "/test/html_only.html"
|
37
|
+
assert_response :success
|
38
|
+
|
39
|
+
# mobile is a more specific type of html, fallback
|
40
|
+
get "/test/html_only.mobile"
|
41
|
+
assert_response :success
|
42
|
+
end
|
43
|
+
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mime_fallback
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Ching
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sqlite3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Allows a rails format to act as a fallback for another format
|
@@ -45,16 +45,18 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
+
- MIT-LICENSE
|
49
|
+
- README.md
|
50
|
+
- Rakefile
|
51
|
+
- lib/mime_fallback.rb
|
48
52
|
- lib/mime_fallback/mime_negotiation.rb
|
49
53
|
- lib/mime_fallback/railtie.rb
|
50
54
|
- lib/mime_fallback/resolver.rb
|
51
55
|
- lib/mime_fallback/type.rb
|
52
56
|
- lib/mime_fallback/version.rb
|
53
|
-
- lib/mime_fallback.rb
|
54
57
|
- lib/tasks/mime_fallback_tasks.rake
|
55
|
-
-
|
56
|
-
- Rakefile
|
57
|
-
- README.md
|
58
|
+
- test/dummy/README.rdoc
|
59
|
+
- test/dummy/Rakefile
|
58
60
|
- test/dummy/app/assets/javascripts/application.js
|
59
61
|
- test/dummy/app/assets/stylesheets/application.css
|
60
62
|
- test/dummy/app/controllers/application_controller.rb
|
@@ -66,6 +68,9 @@ files:
|
|
66
68
|
- test/dummy/app/views/test/_split_again.mobile.erb
|
67
69
|
- test/dummy/app/views/test/basic.html.erb
|
68
70
|
- test/dummy/app/views/test/basic.mobile.erb
|
71
|
+
- test/dummy/app/views/test/html_only.html.erb
|
72
|
+
- test/dummy/app/views/test/mobile_only.mobile.erb
|
73
|
+
- test/dummy/config.ru
|
69
74
|
- test/dummy/config/application.rb
|
70
75
|
- test/dummy/config/boot.rb
|
71
76
|
- test/dummy/config/database.yml
|
@@ -81,28 +86,14 @@ files:
|
|
81
86
|
- test/dummy/config/initializers/wrap_parameters.rb
|
82
87
|
- test/dummy/config/locales/en.yml
|
83
88
|
- test/dummy/config/routes.rb
|
84
|
-
- test/dummy/config.ru
|
85
|
-
- test/dummy/db/test.sqlite3
|
86
|
-
- test/dummy/log/test.log
|
87
89
|
- test/dummy/memory
|
88
90
|
- test/dummy/public/404.html
|
89
91
|
- test/dummy/public/422.html
|
90
92
|
- test/dummy/public/500.html
|
91
93
|
- test/dummy/public/favicon.ico
|
92
|
-
- test/dummy/Rakefile
|
93
|
-
- test/dummy/README.rdoc
|
94
94
|
- test/dummy/script/rails
|
95
|
-
- test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
96
|
-
- test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
97
|
-
- test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
98
|
-
- test/dummy/tmp/cache/assets/test/sprockets/6b36a21a75ddb9a45aa6e9133c79a3c7
|
99
|
-
- test/dummy/tmp/cache/assets/test/sprockets/c360bf7b66d29ebdf71b5814574b5fed
|
100
|
-
- test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
101
|
-
- test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
102
|
-
- test/dummy/tmp/cache/assets/test/sprockets/e0ac75c1efdaac1b74d439c004c3b09f
|
103
|
-
- test/dummy/tmp/cache/assets/test/sprockets/ec2d15616d5d09eb1693b761c72948ce
|
104
|
-
- test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
105
95
|
- test/mime_fallback_test.rb
|
96
|
+
- test/responds_test.rb
|
106
97
|
- test/test_controller_test.rb
|
107
98
|
- test/test_helper.rb
|
108
99
|
homepage: http://github.com/avvo/mime_fallback
|
@@ -115,17 +106,17 @@ require_paths:
|
|
115
106
|
- lib
|
116
107
|
required_ruby_version: !ruby/object:Gem::Requirement
|
117
108
|
requirements:
|
118
|
-
- -
|
109
|
+
- - ">="
|
119
110
|
- !ruby/object:Gem::Version
|
120
111
|
version: '0'
|
121
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
113
|
requirements:
|
123
|
-
- -
|
114
|
+
- - ">="
|
124
115
|
- !ruby/object:Gem::Version
|
125
116
|
version: '0'
|
126
117
|
requirements: []
|
127
118
|
rubyforge_project:
|
128
|
-
rubygems_version: 2.
|
119
|
+
rubygems_version: 2.2.2
|
129
120
|
signing_key:
|
130
121
|
specification_version: 4
|
131
122
|
summary: Format fallbacks for rendering partials
|
@@ -141,6 +132,8 @@ test_files:
|
|
141
132
|
- test/dummy/app/views/test/_split_again.mobile.erb
|
142
133
|
- test/dummy/app/views/test/basic.html.erb
|
143
134
|
- test/dummy/app/views/test/basic.mobile.erb
|
135
|
+
- test/dummy/app/views/test/html_only.html.erb
|
136
|
+
- test/dummy/app/views/test/mobile_only.mobile.erb
|
144
137
|
- test/dummy/config/application.rb
|
145
138
|
- test/dummy/config/boot.rb
|
146
139
|
- test/dummy/config/database.yml
|
@@ -157,8 +150,6 @@ test_files:
|
|
157
150
|
- test/dummy/config/locales/en.yml
|
158
151
|
- test/dummy/config/routes.rb
|
159
152
|
- test/dummy/config.ru
|
160
|
-
- test/dummy/db/test.sqlite3
|
161
|
-
- test/dummy/log/test.log
|
162
153
|
- test/dummy/memory
|
163
154
|
- test/dummy/public/404.html
|
164
155
|
- test/dummy/public/422.html
|
@@ -167,16 +158,8 @@ test_files:
|
|
167
158
|
- test/dummy/Rakefile
|
168
159
|
- test/dummy/README.rdoc
|
169
160
|
- test/dummy/script/rails
|
170
|
-
- test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
171
|
-
- test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
172
|
-
- test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
173
|
-
- test/dummy/tmp/cache/assets/test/sprockets/6b36a21a75ddb9a45aa6e9133c79a3c7
|
174
|
-
- test/dummy/tmp/cache/assets/test/sprockets/c360bf7b66d29ebdf71b5814574b5fed
|
175
|
-
- test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
176
|
-
- test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
177
|
-
- test/dummy/tmp/cache/assets/test/sprockets/e0ac75c1efdaac1b74d439c004c3b09f
|
178
|
-
- test/dummy/tmp/cache/assets/test/sprockets/ec2d15616d5d09eb1693b761c72948ce
|
179
|
-
- test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
180
161
|
- test/mime_fallback_test.rb
|
162
|
+
- test/responds_test.rb
|
181
163
|
- test/test_controller_test.rb
|
182
164
|
- test/test_helper.rb
|
165
|
+
has_rdoc:
|
data/test/dummy/db/test.sqlite3
DELETED
File without changes
|
data/test/dummy/log/test.log
DELETED
@@ -1,356 +0,0 @@
|
|
1
|
-
Connecting to database specified by database.yml
|
2
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
4
|
-
Connecting to database specified by database.yml
|
5
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
6
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
7
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
9
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
11
|
-
Connecting to database specified by database.yml
|
12
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
13
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
14
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15
|
-
Processing by TestController#basic as HTML
|
16
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
17
|
-
Rendered test/_shared.html.erb (1.0ms)
|
18
|
-
Rendered test/basic.html.erb within layouts/application (4.3ms)
|
19
|
-
Completed 200 OK in 13.9ms (Views: 13.5ms | ActiveRecord: 0.0ms)
|
20
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
21
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
22
|
-
Processing by TestController#basic as MOBILE
|
23
|
-
Completed 500 Internal Server Error in 4.9ms
|
24
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
25
|
-
Connecting to database specified by database.yml
|
26
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
27
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
28
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
29
|
-
Processing by TestController#basic as HTML
|
30
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
31
|
-
Rendered test/_shared.html.erb (0.8ms)
|
32
|
-
Rendered test/basic.html.erb within layouts/application (2.9ms)
|
33
|
-
Completed 200 OK in 7.7ms (Views: 7.5ms | ActiveRecord: 0.0ms)
|
34
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
35
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36
|
-
Processing by TestController#basic as MOBILE
|
37
|
-
Completed 500 Internal Server Error in 3.6ms
|
38
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
39
|
-
Connecting to database specified by database.yml
|
40
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
41
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
42
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
43
|
-
Processing by TestController#basic as HTML
|
44
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
45
|
-
Rendered test/_shared.html.erb (0.8ms)
|
46
|
-
Rendered test/basic.html.erb within layouts/application (3.0ms)
|
47
|
-
Completed 200 OK in 8.1ms (Views: 7.9ms | ActiveRecord: 0.0ms)
|
48
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
49
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
50
|
-
Processing by TestController#basic as MOBILE
|
51
|
-
Completed 500 Internal Server Error in 3.4ms
|
52
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
53
|
-
Connecting to database specified by database.yml
|
54
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
55
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
56
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
57
|
-
Processing by TestController#basic as HTML
|
58
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
59
|
-
Rendered test/_shared.html.erb (0.8ms)
|
60
|
-
Rendered test/basic.html.erb within layouts/application (2.8ms)
|
61
|
-
Completed 200 OK in 7.6ms (Views: 7.4ms | ActiveRecord: 0.0ms)
|
62
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
63
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64
|
-
Processing by TestController#basic as MOBILE
|
65
|
-
Completed 500 Internal Server Error in 3.8ms
|
66
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
67
|
-
Connecting to database specified by database.yml
|
68
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
69
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
70
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
71
|
-
Processing by TestController#basic as HTML
|
72
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
73
|
-
Rendered test/_shared.html.erb (0.8ms)
|
74
|
-
Rendered test/basic.html.erb within layouts/application (2.7ms)
|
75
|
-
Completed 200 OK in 7.4ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
76
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
77
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
78
|
-
Processing by TestController#basic as HTML
|
79
|
-
Parameters: {"mobile"=>"true"}
|
80
|
-
Rendered test/_split_again.html.erb (0.0ms)
|
81
|
-
Rendered test/_shared.html.erb (0.2ms)
|
82
|
-
Completed 200 OK in 1.3ms (Views: 1.2ms | ActiveRecord: 0.0ms)
|
83
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
84
|
-
Connecting to database specified by database.yml
|
85
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
86
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
87
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
88
|
-
Processing by TestController#basic as HTML
|
89
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
90
|
-
Rendered test/_shared.html.erb (0.8ms)
|
91
|
-
Rendered test/basic.html.erb within layouts/application (2.8ms)
|
92
|
-
Completed 200 OK in 7.6ms (Views: 7.4ms | ActiveRecord: 0.0ms)
|
93
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
94
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
95
|
-
Processing by TestController#basic as HTML
|
96
|
-
Parameters: {"mobile"=>"true"}
|
97
|
-
Completed 500 Internal Server Error in 0.9ms
|
98
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
99
|
-
Connecting to database specified by database.yml
|
100
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
101
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
102
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
103
|
-
Processing by TestController#basic as HTML
|
104
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
105
|
-
Rendered test/_shared.html.erb (0.8ms)
|
106
|
-
Rendered test/basic.html.erb within layouts/application (2.7ms)
|
107
|
-
Completed 200 OK in 7.6ms (Views: 7.4ms | ActiveRecord: 0.0ms)
|
108
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
109
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
110
|
-
Processing by TestController#basic as HTML
|
111
|
-
Parameters: {"mobile"=>"true"}
|
112
|
-
Rendered test/_split_again.html.erb (0.0ms)
|
113
|
-
Rendered test/_shared.html.erb (0.2ms)
|
114
|
-
Completed 200 OK in 1.6ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
115
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
116
|
-
Connecting to database specified by database.yml
|
117
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
118
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
119
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
120
|
-
Processing by TestController#basic as HTML
|
121
|
-
Rendered test/_split_again.html.erb (0.3ms)
|
122
|
-
Rendered test/_shared.html.erb (1.3ms)
|
123
|
-
Rendered test/basic.html.erb within layouts/application (4.8ms)
|
124
|
-
Completed 200 OK in 12.0ms (Views: 11.6ms | ActiveRecord: 0.0ms)
|
125
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
126
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
127
|
-
Processing by TestController#basic as HTML
|
128
|
-
Parameters: {"mobile"=>"true"}
|
129
|
-
Completed 500 Internal Server Error in 6.5ms
|
130
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
131
|
-
Connecting to database specified by database.yml
|
132
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
133
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
134
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
135
|
-
Processing by TestController#basic as HTML
|
136
|
-
Rendered test/_split_again.html.erb (0.3ms)
|
137
|
-
Rendered test/_shared.html.erb (2.0ms)
|
138
|
-
Rendered test/basic.html.erb within layouts/application (16.5ms)
|
139
|
-
Completed 200 OK in 35.2ms (Views: 34.9ms | ActiveRecord: 0.0ms)
|
140
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
141
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
142
|
-
Processing by TestController#basic as HTML
|
143
|
-
Parameters: {"mobile"=>"true"}
|
144
|
-
Completed 500 Internal Server Error in 5.1ms
|
145
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
146
|
-
Connecting to database specified by database.yml
|
147
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
148
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
149
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
150
|
-
Processing by TestController#basic as HTML
|
151
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
152
|
-
Rendered test/_shared.html.erb (0.8ms)
|
153
|
-
Rendered test/basic.html.erb within layouts/application (2.8ms)
|
154
|
-
Completed 200 OK in 7.5ms (Views: 7.3ms | ActiveRecord: 0.0ms)
|
155
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
156
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
157
|
-
Processing by TestController#basic as HTML
|
158
|
-
Parameters: {"mobile"=>"true"}
|
159
|
-
Completed 500 Internal Server Error in 4.4ms
|
160
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
161
|
-
Connecting to database specified by database.yml
|
162
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
163
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
164
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
165
|
-
Processing by TestController#basic as HTML
|
166
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
167
|
-
Rendered test/_shared.html.erb (0.8ms)
|
168
|
-
Rendered test/basic.html.erb within layouts/application (2.8ms)
|
169
|
-
Completed 200 OK in 7.6ms (Views: 7.4ms | ActiveRecord: 0.0ms)
|
170
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
171
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
172
|
-
Processing by TestController#basic as HTML
|
173
|
-
Parameters: {"mobile"=>"true"}
|
174
|
-
Completed 500 Internal Server Error in 3.8ms
|
175
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
176
|
-
Connecting to database specified by database.yml
|
177
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
178
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
179
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
180
|
-
Processing by TestController#basic as HTML
|
181
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
182
|
-
Rendered test/_shared.html.erb (0.8ms)
|
183
|
-
Rendered test/basic.html.erb within layouts/application (2.6ms)
|
184
|
-
Completed 200 OK in 7.5ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
185
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
186
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
187
|
-
Processing by TestController#basic as HTML
|
188
|
-
Parameters: {"mobile"=>"true"}
|
189
|
-
Completed 500 Internal Server Error in 3.5ms
|
190
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
191
|
-
Connecting to database specified by database.yml
|
192
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
193
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
194
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
195
|
-
Processing by TestController#basic as HTML
|
196
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
197
|
-
Rendered test/_shared.html.erb (0.8ms)
|
198
|
-
Rendered test/basic.html.erb within layouts/application (2.6ms)
|
199
|
-
Completed 200 OK in 7.4ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
200
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
201
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
202
|
-
Processing by TestController#basic as HTML
|
203
|
-
Parameters: {"mobile"=>"true"}
|
204
|
-
Completed 500 Internal Server Error in 4.5ms
|
205
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
206
|
-
Connecting to database specified by database.yml
|
207
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
208
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
209
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
210
|
-
Processing by TestController#basic as HTML
|
211
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
212
|
-
Rendered test/_shared.html.erb (0.8ms)
|
213
|
-
Rendered test/basic.html.erb within layouts/application (2.7ms)
|
214
|
-
Completed 200 OK in 7.9ms (Views: 7.7ms | ActiveRecord: 0.0ms)
|
215
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
216
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
217
|
-
Processing by TestController#basic as HTML
|
218
|
-
Parameters: {"mobile"=>"true"}
|
219
|
-
Completed 500 Internal Server Error in 5.2ms
|
220
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
221
|
-
Connecting to database specified by database.yml
|
222
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
223
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
224
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
225
|
-
Processing by TestController#basic as HTML
|
226
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
227
|
-
Rendered test/_shared.html.erb (0.8ms)
|
228
|
-
Rendered test/basic.html.erb within layouts/application (2.7ms)
|
229
|
-
Completed 200 OK in 7.9ms (Views: 7.7ms | ActiveRecord: 0.0ms)
|
230
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
231
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
232
|
-
Processing by TestController#basic as HTML
|
233
|
-
Parameters: {"mobile"=>"true"}
|
234
|
-
Completed 500 Internal Server Error in 0.2ms
|
235
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
236
|
-
Connecting to database specified by database.yml
|
237
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
238
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
239
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
240
|
-
Processing by TestController#basic as HTML
|
241
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
242
|
-
Rendered test/_shared.html.erb (0.8ms)
|
243
|
-
Rendered test/basic.html.erb within layouts/application (2.8ms)
|
244
|
-
Completed 200 OK in 8.0ms (Views: 7.8ms | ActiveRecord: 0.0ms)
|
245
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
246
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
247
|
-
Processing by TestController#basic as HTML
|
248
|
-
Parameters: {"mobile"=>"true"}
|
249
|
-
Completed 500 Internal Server Error in 5.1ms
|
250
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
251
|
-
Connecting to database specified by database.yml
|
252
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
253
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
254
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
255
|
-
Processing by TestController#basic as HTML
|
256
|
-
Rendered test/_split_again.html.erb (0.3ms)
|
257
|
-
Rendered test/_shared.html.erb (1.1ms)
|
258
|
-
Rendered test/basic.html.erb within layouts/application (4.0ms)
|
259
|
-
Completed 200 OK in 10.1ms (Views: 9.8ms | ActiveRecord: 0.0ms)
|
260
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
261
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
262
|
-
Processing by TestController#basic as HTML
|
263
|
-
Parameters: {"mobile"=>"true"}
|
264
|
-
Completed 500 Internal Server Error in 5.2ms
|
265
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
266
|
-
Connecting to database specified by database.yml
|
267
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
268
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
269
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
270
|
-
Processing by TestController#basic as HTML
|
271
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
272
|
-
Rendered test/_shared.html.erb (0.8ms)
|
273
|
-
Rendered test/basic.html.erb within layouts/application (2.8ms)
|
274
|
-
Completed 200 OK in 8.5ms (Views: 8.3ms | ActiveRecord: 0.0ms)
|
275
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
276
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
277
|
-
Processing by TestController#basic as HTML
|
278
|
-
Parameters: {"mobile"=>"true"}
|
279
|
-
Completed 500 Internal Server Error in 11.5ms
|
280
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
281
|
-
Connecting to database specified by database.yml
|
282
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
283
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
284
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
285
|
-
Processing by TestController#basic as HTML
|
286
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
287
|
-
Rendered test/_shared.html.erb (0.8ms)
|
288
|
-
Rendered test/basic.html.erb within layouts/application (2.8ms)
|
289
|
-
Completed 200 OK in 8.6ms (Views: 8.3ms | ActiveRecord: 0.0ms)
|
290
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
291
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
292
|
-
Processing by TestController#basic as HTML
|
293
|
-
Parameters: {"mobile"=>"true"}
|
294
|
-
Rendered test/_split_again.mobile.erb (0.4ms)
|
295
|
-
Rendered test/_shared.html.erb (3.5ms)
|
296
|
-
Completed 200 OK in 11.3ms (Views: 11.0ms | ActiveRecord: 0.0ms)
|
297
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
298
|
-
Connecting to database specified by database.yml
|
299
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
300
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
301
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
302
|
-
Processing by TestController#basic as HTML
|
303
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
304
|
-
Rendered test/_shared.html.erb (0.8ms)
|
305
|
-
Rendered test/basic.html.erb within layouts/application (2.7ms)
|
306
|
-
Completed 200 OK in 7.8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
|
307
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
308
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
309
|
-
Processing by TestController#basic as HTML
|
310
|
-
Parameters: {"mobile"=>"true"}
|
311
|
-
Rendered test/_split_again.mobile.erb (0.2ms)
|
312
|
-
Rendered test/_shared.html.erb (0.8ms)
|
313
|
-
Completed 200 OK in 3.9ms (Views: 3.8ms | ActiveRecord: 0.0ms)
|
314
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
315
|
-
Connecting to database specified by database.yml
|
316
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
317
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
318
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
319
|
-
Processing by TestController#basic as HTML
|
320
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
321
|
-
Rendered test/_shared.html.erb (0.8ms)
|
322
|
-
Rendered test/basic.html.erb within layouts/application (2.8ms)
|
323
|
-
Completed 200 OK in 7.5ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
324
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
325
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
326
|
-
Processing by TestController#basic as HTML
|
327
|
-
Parameters: {"mobile"=>"true"}
|
328
|
-
Rendered test/_split_again.mobile.erb (0.2ms)
|
329
|
-
Rendered test/_shared.html.erb (0.8ms)
|
330
|
-
Completed 200 OK in 3.9ms (Views: 3.8ms | ActiveRecord: 0.0ms)
|
331
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
332
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
333
|
-
----------------------------
|
334
|
-
MimeFallbackTest: test_truth
|
335
|
-
----------------------------
|
336
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
337
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
338
|
-
---------------------------------------
|
339
|
-
TestControllerTest: test_rendering_html
|
340
|
-
---------------------------------------
|
341
|
-
Processing by TestController#basic as HTML
|
342
|
-
Rendered test/_split_again.html.erb (0.2ms)
|
343
|
-
Rendered test/_shared.html.erb (0.9ms)
|
344
|
-
Rendered test/basic.html.erb within layouts/application (1.7ms)
|
345
|
-
Completed 200 OK in 56ms (Views: 55.8ms | ActiveRecord: 0.0ms)
|
346
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
347
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
348
|
-
-----------------------------------------
|
349
|
-
TestControllerTest: test_rendering_mobile
|
350
|
-
-----------------------------------------
|
351
|
-
Processing by TestController#basic as HTML
|
352
|
-
Parameters: {"mobile"=>"true"}
|
353
|
-
Rendered test/_split_again.mobile.erb (0.3ms)
|
354
|
-
Rendered test/_shared.html.erb (1.0ms)
|
355
|
-
Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
|
356
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|