factory_bot_generator 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +1 -1
- data/lib/factory_bot_generator/version.rb +1 -1
- data/lib/factory_bot_generator.erb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96174c6da4981e6de3af9a8f7e515c56dee456bb
|
4
|
+
data.tar.gz: 951432e8e9f0726889d6dac40e02bc17457678c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb5d882a2a2154b35ac4819c4c1bff557924bce8db78826f4ad41bc925891eb495fa0433ae78e5f1196129e3e9553b491ba2fe7801d221151a84be0c808ce72c
|
7
|
+
data.tar.gz: 20bf4cf1d64f7f6fe0ef3b07e577be48b46b2af4152087829092ff9ca46a31cd499f588d091bd2cab687bc318816b230870a389534820b640cd4c0a1d84767d7
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
FactoryBot.define do
|
2
2
|
factory :<%= name %>, class: <%= record.class %> do
|
3
3
|
<% columns.each do |column| %>
|
4
|
-
<% quote = FactoryBotGenerator::QUOTE_AROUND_VALUE_TYPES.include?(record.class.columns_hash[column].type) %>
|
4
|
+
<% quote = FactoryBotGenerator::Base::QUOTE_AROUND_VALUE_TYPES.include?(record.class.columns_hash[column].type) %>
|
5
5
|
<%= "%-#{indent}s" % column %> <%== "'" if quote %><%== record.public_send(column) %><%== "'" if quote %>
|
6
6
|
<% end %>
|
7
7
|
end
|