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: 949efd8fd6f8be81fbd78b38d2db7aa56aa1c427
4
- data.tar.gz: eb3c702c131873e182246d57368836423e3ed9bb
3
+ metadata.gz: 93d4348c1dde9b0175763af2254ae6e76d8f487a
4
+ data.tar.gz: 8a12cede997f834e9a199b8759a195f832f1dba6
5
5
  SHA512:
6
- metadata.gz: 445f44e631fb2f8a7af9f5d4bb6b92c8952ade88ccc99712a751059bfe8fae71f472c9ce65422baffff8d0c95c53f4dcff7c0af4b7566c468e24f7781f12d402
7
- data.tar.gz: 47503825241b5a8c3f032b993541ba7771c7c3b2cbf483fb6488359484b30aa96e7fc14032cbf3ec319db9ee82a39cef461d312aaa5e6a827e4f3c25a6dd2543
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
- uncomment_lines 'rails_helper.rb', /spec\/support\/\*\*\/\*.rb/
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'
@@ -1,3 +1,3 @@
1
1
  module MakeItSo
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  factory :user do
2
2
  sequence(:email) {|n| "user#{n}@example.com" }
3
- password 'password'
4
- password_confirmation 'password'
3
+ password { 'password' }
4
+ password_confirmation { 'password' }
5
5
  end
@@ -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 all support files, including factory bot' do
102
+ it 'requires the factory_bot support file' do
103
103
  expect(File.read(rails_spec_helper)).
104
- to include("\nDir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }\n\n")
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.2
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-08-01 00:00:00.000000000 Z
11
+ date: 2018-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor