make_it_so 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b20d622a1f19f90b47cb2843320045304dcb106
4
- data.tar.gz: d9b9d64f958cce7b2d077cb79948c922c09e0200
3
+ metadata.gz: 92f2d126f14ae04ea599f4b6546931caa8995714
4
+ data.tar.gz: 0c46ad51239dd794558d13552c964e0087aadc1a
5
5
  SHA512:
6
- metadata.gz: f3a47915eff83ac3273ed7e5c8a7ea659fa3846ac760707931a057c914e6969e340e93732afab5275e1ca6dbff9cd9c448e6c604175455330448033ebe8431de
7
- data.tar.gz: 9b9c021ebfcda78790c05b187fffb6f83baaef825fea21f3e935cc5875abbc7556656bc0d1fe9c3da02aa2e9b80a0de80720730ee6d3e85200d69351ce1f5474
6
+ metadata.gz: 6424abdf838af71ab9917e0f77478faf8415e5b59d0cf893cd1ef840eea70378f64beef0c67cbd4377253fd9cae3147f17adf61937805766289039d8a35a37b1
7
+ data.tar.gz: 5837fdae03041a6c735c326b60dd25a329d9fa76b247e6fc039757d30c22fec5050813744fd884b891ab91b065ef290747a9be241e40f939f29bd234941f96d5
@@ -213,12 +213,8 @@ module MakeItSo
213
213
  group: [:development, :test],
214
214
  require: false
215
215
  after_bundle do
216
- inside 'spec' do
217
- insert_into_file 'rails_helper.rb',
218
- after: rails_helper_insertion_hook do
219
-
220
- "require 'shoulda-matchers'\n"
221
- end
216
+ inside 'spec/support' do
217
+ template 'shoulda.rb'
222
218
  end
223
219
  end
224
220
  end
@@ -1,3 +1,3 @@
1
1
  module MakeItSo
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
@@ -126,9 +126,8 @@ feature 'user generates rails app' do
126
126
  expect(File.read(gemfile_path)).to include('shoulda-matchers')
127
127
  end
128
128
 
129
- it 'requires shoulda-matchers in the rails_helper' do
130
- expect(File.read(rails_spec_helper)).
131
- to include("require 'shoulda-matchers'")
129
+ it 'includes a shoulda file in the support directory' do
130
+ expect(FileTest.exists?(join_paths(app_path, 'spec/support/shoulda.rb')))
132
131
  end
133
132
  end
134
133
 
@@ -0,0 +1,6 @@
1
+ require 'shoulda-matchers'
2
+
3
+ RSpec.configure do |config|
4
+ config.include(Shoulda::Matchers::ActiveModel, type: :model)
5
+ config.include(Shoulda::Matchers::ActiveRecord, type: :model)
6
+ end
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.3.6
4
+ version: 0.3.7
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-05-08 00:00:00.000000000 Z
11
+ date: 2018-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -201,6 +201,7 @@ files:
201
201
  - templates/rails/spec/support/database_cleaner.rb
202
202
  - templates/rails/spec/support/devise_controller_spec.rb
203
203
  - templates/rails/spec/support/factory_bot.rb
204
+ - templates/rails/spec/support/shoulda.rb
204
205
  - templates/rails/spec/support/valid_attribute.rb
205
206
  - templates/sinatra/.gitignore
206
207
  - templates/sinatra/.rspec