factory_bot-preload 0.2.1 → 0.2.2

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: 3208014d76a8c6305ef440749ec6dd487488dee2a66a16a67c22620a49b90fc0
4
- data.tar.gz: 4175d21970ac15c0e3af4844cf4f8e4eba13bd257ba7664eec7496abefb64545
3
+ metadata.gz: 40f6db7436f6c2e5af62b1432b8d4c2e4910e68aa2ae6bfe3ffd9fb7d37540f8
4
+ data.tar.gz: e03e9fcbc0772227d7f05032422cfea1488442b692ab873b0d2c4edd03855500
5
5
  SHA512:
6
- metadata.gz: 1e4b4e6bc92c975d9c87226e45cf3578496604c298afec1aa850010e4d278b42e865cb3f60e3e0bd003d9e228cf1d8b067b8cf3e22c91262092d8c04e5a9ebc2
7
- data.tar.gz: 1f86d9bab02f4a3a9d6dcd4a97987aca6f2faaa03e81a6ee9ba1c62bf04c5783116d4cc34a207e5e8706e319ad9e52aef8ac1a3a91c43a8bd4e805e928afe9bd
6
+ metadata.gz: 4b5095f45aee005e1b1377d98a9649c8c46ee96a89218e46f06aa6f5e8c632a1a09b0db76c52fc7738c53ce6e4f67897d98829810dbc02ec2061fb6a612278cc
7
+ data.tar.gz: 7607063d3be8e6af9aec024b8fe286442ae858d84f495cdec6679744af7a5fd2ff978dfef68faa6b52c9609dee6bf6d691788c7f094598dc621d5d4e791ab772
data/.gitignore CHANGED
@@ -3,3 +3,4 @@ pkg
3
3
  tmp
4
4
  *.log
5
5
  *.lock
6
+ coverage
data/README.md CHANGED
@@ -43,7 +43,13 @@ ENV["RAILS_ENV"] ||= "test"
43
43
  require File.expand_path("../../config/environment", __FILE__)
44
44
  require "rspec/rails"
45
45
 
46
- Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
46
+ # First, load factory_bot/preload.
47
+ require "factory_bot/preload"
48
+
49
+ # Then load your factories
50
+ Dir[Rails.root.join("spec/support/factories/**/*.rb")].each do |file|
51
+ require file
52
+ end
47
53
 
48
54
  RSpec.configure do |config|
49
55
  config.use_transactional_fixtures = true
@@ -5,7 +5,7 @@ module FactoryBot
5
5
  module Version
6
6
  MAJOR = 0
7
7
  MINOR = 2
8
- PATCH = 1
8
+ PATCH = 2
9
9
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factory_bot-preload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
@@ -196,7 +196,6 @@ files:
196
196
  - factory_bot-preload.gemspec
197
197
  - gemfiles/5_2.gemfile
198
198
  - gemfiles/6_0.gemfile
199
- - lib/factory_bot-preload.rb
200
199
  - lib/factory_bot/preload.rb
201
200
  - lib/factory_bot/preload/extension.rb
202
201
  - lib/factory_bot/preload/helpers.rb
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "factory_bot/preload"