make_it_so 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/make_it_so/rails/app_builder.rb +5 -0
- data/lib/make_it_so/version.rb +1 -1
- data/spec/features/user_generates_rails_spec.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d11db83714ffc877a24b18039f1ae6ee4c6b598
|
4
|
+
data.tar.gz: c0c0565288822a9d379d606883938ca0cd5eb2a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6db1f9a010e09e1e9dbe80fe531a39106c31adf2ed935529859885909e3df03bf5cdbd9f6077c585a9c8d0d410afc98a0372b35033f8798fd9071f8286a5387
|
7
|
+
data.tar.gz: 4e18ed989c521517f8f2d290fb7ae87d9793e8803cc2ba0bdb6055d343d73ee9338531d17f07737405c8f53206b8e65923753ba37aa69757dea16d2b57a554dc
|
@@ -91,6 +91,10 @@ module MakeItSo
|
|
91
91
|
template 'exampleTest.js'
|
92
92
|
template 'testHelper.js'
|
93
93
|
end
|
94
|
+
|
95
|
+
append_to_file '.gitignore' do
|
96
|
+
"coverage/*\n"
|
97
|
+
end
|
94
98
|
end
|
95
99
|
end
|
96
100
|
|
@@ -99,6 +103,7 @@ module MakeItSo
|
|
99
103
|
deps = [
|
100
104
|
'jest',
|
101
105
|
'babel-jest',
|
106
|
+
'enzyme',
|
102
107
|
'enzyme-adapter-react-15.4',
|
103
108
|
'react-addons-test-utils',
|
104
109
|
'jest-fetch-mock'
|
data/lib/make_it_so/version.rb
CHANGED
@@ -241,6 +241,11 @@ feature 'user generates rails app' do
|
|
241
241
|
expect(json["devDependencies"]["react-addons-test-utils"]).to_not be_nil
|
242
242
|
end
|
243
243
|
end
|
244
|
+
|
245
|
+
it 'adds coverage/* to gitignore' do
|
246
|
+
expect(File.read(File.join(app_path, '.gitignore'))).to include("coverage/*\n")
|
247
|
+
end
|
248
|
+
|
244
249
|
end
|
245
250
|
|
246
251
|
context 'dotenv' do
|
@@ -284,6 +289,12 @@ feature 'jest' do
|
|
284
289
|
end
|
285
290
|
end
|
286
291
|
|
292
|
+
scenario 'adds enzyme as a dependency' do
|
293
|
+
in_package_json?(package_json_path) do |json|
|
294
|
+
expect(json["devDependencies"]["enzyme"]).to_not be_nil
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
287
298
|
scenario 'adds jest as the test script in package.json' do
|
288
299
|
in_package_json?(package_json_path) do |json|
|
289
300
|
expect(json["scripts"]["test"]).to include("jest")
|
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.1
|
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-07-
|
11
|
+
date: 2018-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|