collection_json_rails 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 609d057cbf3f907872e38980ed46e3f0fc4fc7cc
|
4
|
+
data.tar.gz: c4fd05ba74ae80f7d3380ae2fe0c8fae02b93b57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cefbf7f30f39807bc4c7086e0e3e7e8b2533c2fd185456cd44fd192b2c1efd9ea56acf9475ba8990cd90a18f0481c049e727325a8baddf5e3d6267d91e39cf1
|
7
|
+
data.tar.gz: 79fa4cf7668152f2fc084f401049e28b70d5a974716587534456f7299fe02df1c4c18099a0c732990c3bd8e41721bdb690fd9a63324b91ca34095d2dcc970575
|
@@ -16,6 +16,9 @@ class PostsController < ActionController::Base
|
|
16
16
|
def without_json
|
17
17
|
render nothing: true
|
18
18
|
end
|
19
|
+
|
20
|
+
def rails_magic_render
|
21
|
+
end
|
19
22
|
end
|
20
23
|
|
21
24
|
class TestRender < ActionController::TestCase
|
@@ -54,5 +57,13 @@ class TestRender < ActionController::TestCase
|
|
54
57
|
assert_response :ok
|
55
58
|
assert_equal Mime::TEXT, response.content_type
|
56
59
|
end
|
60
|
+
|
61
|
+
def test_rails_magic_render_behaves_as_usual
|
62
|
+
missing_template = "Missing template posts/rails_magic_render " +
|
63
|
+
"with {:locale=>[:en], :formats=>[:html], :variants=>[], " +
|
64
|
+
":handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:\n"
|
65
|
+
error = assert_raises(ActionView::MissingTemplate) { get :rails_magic_render }
|
66
|
+
assert_equal missing_template, error.message
|
67
|
+
end
|
57
68
|
end
|
58
69
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: collection_json_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carles Jove i Buxeda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: collection_json_serializer
|
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
147
|
version: '0'
|
148
148
|
requirements: []
|
149
149
|
rubyforge_project:
|
150
|
-
rubygems_version: 2.
|
150
|
+
rubygems_version: 2.4.8
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: Collection+JSON Serializers with the Rails touch
|
@@ -159,4 +159,3 @@ test_files:
|
|
159
159
|
- test/minitest_helper.rb
|
160
160
|
- test/serializer_test.rb
|
161
161
|
- test/support/test_app.rb
|
162
|
-
has_rdoc:
|