jbuilder_rspec_generator 1.0.4 → 1.0.5
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: 338fc349a3f7abc8eab597c8f3b7c024a88d936f
|
4
|
+
data.tar.gz: c9c0ef5dc6c837c893326d25af365207dd11c4c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0d16ea97698e963969366f278aa94a5e51192640dda720a3b0fa6fc05df0cf210a9facfa12b2821d92783b2700769233d24d767069d3344a0274d5811ae0eb6
|
7
|
+
data.tar.gz: 4b12cb6544efe9e7e9f500ceac57fc9819d71b856136c8229695b98696b44a791e1582110645a6c667ff9d738a1b9e8a1e929c81d381b118e783af5e96a6fcba
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.5
|
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: jbuilder_rspec_generator 1.0.
|
5
|
+
# stub: jbuilder_rspec_generator 1.0.5 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "jbuilder_rspec_generator"
|
9
|
-
s.version = "1.0.
|
9
|
+
s.version = "1.0.5"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
@@ -39,7 +39,7 @@ describe "<%= ns_table_name %>/index.json.jbuilder", type: :view do
|
|
39
39
|
expected['url'] = <%= ns_file_name %>_url(@<%= ns_file_name %>, format: 'json')
|
40
40
|
expect(hash).to eq expected
|
41
41
|
<% for attribute in attributes -%>
|
42
|
-
# expect(hash['<%= attribute.name %>']).to eq
|
42
|
+
# expect(hash['<%= attribute.name %>']).to eq @<%= ns_file_name %>.<%= attribute.name %>.to_s
|
43
43
|
<% end -%>
|
44
44
|
# expect(hash['url']).to eq <%= ns_file_name %>_url(@<%= ns_file_name %>, format: 'json')
|
45
45
|
end
|
@@ -37,7 +37,7 @@ describe "<%= ns_table_name %>/show.json.jbuilder", type: :view do
|
|
37
37
|
expected = MultiJson.load MultiJson.dump @<%= ns_file_name %>.attributes.slice *attributes
|
38
38
|
expect(hash).to eq expected
|
39
39
|
<% for attribute in attributes -%>
|
40
|
-
# expect(hash['<%= attribute.name %>']).to eq
|
40
|
+
# expect(hash['<%= attribute.name %>']).to eq @<%= ns_file_name %>.<%= attribute.name %>.to_s
|
41
41
|
<% end -%>
|
42
42
|
end
|
43
43
|
end
|