make_it_so 0.4.2 → 0.4.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: 93d4348c1dde9b0175763af2254ae6e76d8f487a
|
4
|
+
data.tar.gz: 8a12cede997f834e9a199b8759a195f832f1dba6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78e8c1b2e1bdef76cb8d7c5d4c605aa15a954ad22cf51400659f05fdb9f3315030d2ebcf626319f1955e131df63eb197a0d0e4df338429f015db38025b62455d
|
7
|
+
data.tar.gz: 18c64e74daa2e20da95b9f9ba33a3248c82b579e9e32c62dd5d74a0e435059ae17f2bdb3e52493f6232fd6d4361eea751f3bb67b05115bb3a8386764cf7e851e
|
@@ -188,7 +188,11 @@ module MakeItSo
|
|
188
188
|
@generator.gem 'factory_bot', group: [:development, :test]
|
189
189
|
after_bundle do
|
190
190
|
inside 'spec' do
|
191
|
-
|
191
|
+
insert_into_file 'rails_helper.rb',
|
192
|
+
after: rails_helper_insertion_hook do
|
193
|
+
|
194
|
+
"require File.join(File.dirname(__FILE__), 'support/factory_bot')\n"
|
195
|
+
end
|
192
196
|
|
193
197
|
inside 'support' do
|
194
198
|
template 'factory_bot.rb'
|
data/lib/make_it_so/version.rb
CHANGED
@@ -99,9 +99,9 @@ feature 'user generates rails app' do
|
|
99
99
|
expect(File.read(gemfile_path)).to include('factory_bot')
|
100
100
|
end
|
101
101
|
|
102
|
-
it 'requires
|
102
|
+
it 'requires the factory_bot support file' do
|
103
103
|
expect(File.read(rails_spec_helper)).
|
104
|
-
to include("\
|
104
|
+
to include("\nrequire File.join(File.dirname(__FILE__), 'support/factory_bot')\n")
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: make_it_so
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Pickett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|