cross_spec_rails 0.1.2 → 0.1.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: 61b512fd901ad710a9dbb92e8bc6aab4f601f462
|
4
|
+
data.tar.gz: e695105c0fcb859ad72f4b62a01b5b094031e679
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41072a45608e4cd56473e1b120d8c87c4d0ac5afabae868ee7cdddb21ce4b3cbf5a869153d5aaa26ef41d517dfebfcec1fd4d5b1ab29e0fa5f3c1797e4ecbfdf
|
7
|
+
data.tar.gz: 3b6545d08a47420bd2ef774a1f80e96e3a882c5a8b872d306ec44173b6676b5ff080f07853cb123e50f9f46d6b8036ceb5215694c061776efd1c84f9951d0d88
|
@@ -18,7 +18,7 @@ module CrossSpecRails
|
|
18
18
|
|
19
19
|
def create
|
20
20
|
factory = params[:factory]
|
21
|
-
traits = Array(params[:traits])
|
21
|
+
traits = Array(params[:traits]).map(&:to_sym)
|
22
22
|
attributes = params[:attributes]&.permit!.to_h
|
23
23
|
includes = params[:includes]
|
24
24
|
instance = factory_klass.create(factory, *traits, attributes)
|
@@ -27,7 +27,7 @@ module CrossSpecRails
|
|
27
27
|
|
28
28
|
def create_list
|
29
29
|
factory = params[:factory]
|
30
|
-
traits = Array(params[:traits])
|
30
|
+
traits = Array(params[:traits]).map(&:to_sym)
|
31
31
|
attributes = params[:attributes]&.permit!.to_h
|
32
32
|
includes = params[:includes]
|
33
33
|
num = params[:num].to_i
|