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: 2b93b514b34ca1af477833e1f9fe983dd8528a9e
4
- data.tar.gz: 015ab1c9cbba62a9cc38f10c8e6b5b8be9807336
3
+ metadata.gz: 61b512fd901ad710a9dbb92e8bc6aab4f601f462
4
+ data.tar.gz: e695105c0fcb859ad72f4b62a01b5b094031e679
5
5
  SHA512:
6
- metadata.gz: a057ab56945708e17eaf1f1117d499d7fe3c6f490d8ea95046b211ad6b84fb945d1b74c871b9e4bab2213a00261d2c656eb782a4e6093338e38d62e2af1ebd0d
7
- data.tar.gz: c9ea2a3db62fd998844b263984b66cd7d79f8ed70ad838f49166d7fe2a6bca079c142cfaa5ae1e8d4443c7add77b20524c6b47fb3e0986f3e066ed88b9d530b9
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
@@ -1,3 +1,3 @@
1
1
  module CrossSpecRails
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cross_spec_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Fischer