graphiti_scaffold_generator 0.1.6 → 0.1.8
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6fe6ece0b31cfb8fb477a63eff20c71ed6497ed109e098af94d62afbdebc673
|
4
|
+
data.tar.gz: 0ea00548c3843fb7a13b63738bc13487e824569015a6f584493c0ff90d10493e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cf7f67401d9be96bd69b9a642e31a5d7c60bb91fe94f0140f2cf5aa9c2e42f7bfb38c324b7f5f7b6d9153518d3ebe8a8aeed3f5494ebeaf69a46859dc63f10f
|
7
|
+
data.tar.gz: 9adb2a2e0cdc7239b9d90fddd5e15fa75e955f339778aed423c387bac9fac7ae4aa2629a981e95b15cb21b14841298848b5c8413adb3d4c88f30904a7f33034a
|
data/Gemfile.lock
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
type ||= primary_key_type || :integer
|
15
15
|
name += '_id'
|
16
16
|
type
|
17
|
-
when :json, :
|
17
|
+
when :json, :jsonb
|
18
18
|
type = :hash
|
19
19
|
when :text
|
20
20
|
type = :string
|
@@ -37,10 +37,10 @@ describe '<%= class_name %>Resource', type: :resource do
|
|
37
37
|
subject(:attributes) { config[:attributes] }
|
38
38
|
|
39
39
|
it 'equal to [<%= all_attributes.map{|a| ":#{a.first}"}.join ", " %>]' do
|
40
|
-
expect(attributes.keys)
|
40
|
+
expect(attributes.keys.sort)
|
41
41
|
.to eq %i[
|
42
42
|
<%= all_attributes.map(&:first).join "\n " %>
|
43
|
-
]
|
43
|
+
].sort
|
44
44
|
end
|
45
45
|
<% all_attributes.each do |name, type| -%>
|
46
46
|
|
@@ -55,8 +55,8 @@ describe '<%= class_name %>Resource', type: :resource do
|
|
55
55
|
expect(attr_<%= name %>[:filterable]).to be <%= name == 'id' %>
|
56
56
|
end
|
57
57
|
|
58
|
-
it 'is readable' do
|
59
|
-
expect(attr_<%= name %>[:readable]).to be
|
58
|
+
it 'is <%= name == 'id' ? 'not' : ' ' %>readable' do
|
59
|
+
expect(attr_<%= name %>[:readable]).to be <%= name != 'id' %>
|
60
60
|
end
|
61
61
|
|
62
62
|
it 'is not writable' do
|