rspeckled 0.0.34 → 0.0.35
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rspeckled/plugins/authentication.rb +1 -1
- data/lib/rspeckled/plugins/{factory_girl.rb → factory_bot.rb} +6 -6
- data/lib/rspeckled/plugins.rb +1 -1
- data/lib/rspeckled/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b117692de5362ed50188b21bf9abaca1bfabfa22
|
4
|
+
data.tar.gz: 7f8d4a993f0cbdf37f0f8f4322a78d25740d9bb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 372c247a6c38faf44d7dac340ad4e6e99f40f909ec4cd826c100cb0edb396a6fac03e8f9cedf8e7085a5fba177daa40f9515f1f581eff0797412d765d43164b0
|
7
|
+
data.tar.gz: b9566fdc8f87c213b8655052d411bf6dfe018ebca5ae59b0903c1df2508aa17129339b5f9066361da430b4e610947fdf1b960d4d896e1930e8aaaadcbb6b766c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -33,7 +33,7 @@ RSpec.configure do |config|
|
|
33
33
|
instance = if options.is_a?(Hash) && options[:strategy] == :instance
|
34
34
|
klass.new
|
35
35
|
else
|
36
|
-
|
36
|
+
FactoryBot.create(underscored_class_name.to_sym)
|
37
37
|
end
|
38
38
|
|
39
39
|
inferred_auth_method = if options.is_a?(Hash) && options[:authentication_method]
|
@@ -1,22 +1,22 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
##############################################################################
|
4
|
-
# Factory
|
4
|
+
# Factory Bot Plugin
|
5
5
|
##############################################################################
|
6
6
|
|
7
7
|
begin
|
8
|
-
require '
|
8
|
+
require 'factory_bot'
|
9
9
|
|
10
|
-
|
10
|
+
FactoryBot.definition_file_paths << './spec/factories'
|
11
11
|
|
12
|
-
if
|
12
|
+
if FactoryBot.configuration.factories.count.zero? &&
|
13
13
|
Rails.application.class.name.match(/Dummy/)
|
14
14
|
|
15
|
-
|
15
|
+
FactoryBot.find_definitions
|
16
16
|
end
|
17
17
|
|
18
18
|
RSpec.configure do |config|
|
19
|
-
config.include
|
19
|
+
config.include FactoryBot::Syntax::Methods
|
20
20
|
end
|
21
21
|
rescue LoadError
|
22
22
|
end
|
data/lib/rspeckled/plugins.rb
CHANGED
@@ -10,7 +10,7 @@ require 'rspeckled/plugins/database_cleaner'
|
|
10
10
|
require 'rspeckled/plugins/devise'
|
11
11
|
require 'rspeckled/plugins/elasticsearch'
|
12
12
|
require 'rspeckled/plugins/email'
|
13
|
-
require 'rspeckled/plugins/
|
13
|
+
require 'rspeckled/plugins/factory_bot'
|
14
14
|
require 'rspeckled/plugins/garbage_collection'
|
15
15
|
require 'rspeckled/plugins/fakeredis'
|
16
16
|
require 'rspeckled/plugins/faraday'
|
data/lib/rspeckled/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspeckled
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thegranddesign
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
Y2GAoHKstmfIVhc4XHOPpmTd2o/C29O9oaRgjrkfQEhF/KvJ/PhoV5hvokzsCyI5
|
32
32
|
iUeXPfvrGD/itYIBCgk+fnzyQQ4QtE5hTQaWQ3o2
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2017-12-
|
34
|
+
date: 2017-12-20 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
@@ -121,7 +121,7 @@ files:
|
|
121
121
|
- lib/rspeckled/plugins/devise.rb
|
122
122
|
- lib/rspeckled/plugins/elasticsearch.rb
|
123
123
|
- lib/rspeckled/plugins/email.rb
|
124
|
-
- lib/rspeckled/plugins/
|
124
|
+
- lib/rspeckled/plugins/factory_bot.rb
|
125
125
|
- lib/rspeckled/plugins/fakeredis.rb
|
126
126
|
- lib/rspeckled/plugins/faraday.rb
|
127
127
|
- lib/rspeckled/plugins/foreign_keys.rb
|
metadata.gz.sig
CHANGED
Binary file
|