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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2949e19df667dfb5b466b4682c63633c0cab41de
4
- data.tar.gz: bf129b7bad56e0f721cf7c79f45f536604e85d8f
3
+ metadata.gz: 0d11db83714ffc877a24b18039f1ae6ee4c6b598
4
+ data.tar.gz: c0c0565288822a9d379d606883938ca0cd5eb2a5
5
5
  SHA512:
6
- metadata.gz: 6985de89cbef91d51317120496a9c94637ddaf38360e5b0f1f8521a66fa093711d9fdf9a583e8396306441aa25d1dec93b8354eb4691ec65c030aa556060b069
7
- data.tar.gz: 30113acdcaed93546ac82518f6940a03251d0e46a4d215bf932b2229ede60736c7cde8e7a506596b6df6d4583d73d7b6571bd6e5a36956eb5a22333cd76e6414
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'
@@ -1,3 +1,3 @@
1
1
  module MakeItSo
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -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.0
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-17 00:00:00.000000000 Z
11
+ date: 2018-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor