guard-konacha-rails 1.1.5 → 1.1.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a77165519a1ca0de9baedf9f81678ca769045ae2
|
4
|
+
data.tar.gz: 6071a01d7c08b8d1ab7eea079db9b486abed1487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 367c60cfa3f24662095bbcb5579cff7e27aca2ee0413a35c36d3666ee2f9c173c0be8a62513a6a5a84589f07ebba200b44fe4d231b85d35fea9cd5c903434cec
|
7
|
+
data.tar.gz: 27dac6d3eba2c09ef0e04fb1dac33b482e3834545a48255f32de0cecbbdac252007539f6d5d054e401eccf1e9b06a3de5a9f4b088d0f12dcafbb1060041dd5a0
|
data/Readme.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# guard-konacha-rails
|
2
2
|
|
3
3
|
[](http://badge.fury.io/rb/guard-konacha-rails)
|
4
|
-
[](https://travis-ci.org/keithpitty/guard-konacha-rails)
|
5
|
+
[](https://coveralls.io/github/keithpitty/guard-konacha-rails?branch=master)
|
6
|
+
[](https://lima.codeclimate.com/github/keithpitty/guard-konacha-rails)
|
7
7
|
|
8
8
|
Automatically run your [Konacha](https://github.com/jfirebaugh/konacha) tests through [Guard](https://github.com/guard/guard/).
|
9
9
|
|
@@ -27,4 +27,4 @@ Then to run:
|
|
27
27
|
|
28
28
|
```bash
|
29
29
|
$ bundle exec guard
|
30
|
-
```
|
30
|
+
```
|
@@ -36,7 +36,7 @@ module Guard
|
|
36
36
|
formatter.reset
|
37
37
|
|
38
38
|
paths.each do |path|
|
39
|
-
if path.empty? or File.
|
39
|
+
if path.empty? or File.exist? real_path path
|
40
40
|
UI.info "Guard::KonachaRails running #{specs_description(path)}"
|
41
41
|
runner.run konacha_path(path)
|
42
42
|
end
|
@@ -46,6 +46,7 @@ module Guard
|
|
46
46
|
notify
|
47
47
|
rescue => e
|
48
48
|
UI.error(e)
|
49
|
+
UI.info(e.message)
|
49
50
|
end
|
50
51
|
|
51
52
|
private
|
@@ -5,6 +5,7 @@
|
|
5
5
|
# - :rails_environment_file, location of rails environment file,
|
6
6
|
# should be able to find it automatically
|
7
7
|
guard 'konacha-rails' do
|
8
|
-
|
8
|
+
# alter the next line if necessary e.g. if your js specs are coffee files
|
9
|
+
watch(%r{^app/assets/javascripts/(.*)\.(js|coffee)?$}) { |m| "spec/javascripts/#{m[1]}_spec.js" }
|
9
10
|
watch(%r{^(test|spec)/javascripts/.+_(test|spec)\.(js|coffee)$})
|
10
11
|
end
|
data/spec/dummy/config/boot.rb
CHANGED
@@ -50,7 +50,7 @@ describe Guard::KonachaRails::Runner do
|
|
50
50
|
end
|
51
51
|
|
52
52
|
it 'should run each path through runner and format results' do
|
53
|
-
allow(File).to receive(:
|
53
|
+
allow(File).to receive(:exist?) { true }
|
54
54
|
allow(runner).to receive(:formatter) { konacha_formatter }
|
55
55
|
expect(konacha_formatter).to receive(:reset)
|
56
56
|
expect(konacha_runner).to receive(:run).with('/1')
|
@@ -61,8 +61,8 @@ describe Guard::KonachaRails::Runner do
|
|
61
61
|
end
|
62
62
|
|
63
63
|
it 'should run each path with a valid extension' do
|
64
|
-
expect(File).to receive(:
|
65
|
-
expect(File).to receive(:
|
64
|
+
expect(File).to receive(:exist?).with(::Rails.root.join('spec/javascripts/1.js').to_s).and_return(true)
|
65
|
+
expect(File).to receive(:exist?).with(::Rails.root.join('spec/javascripts/foo/bar.js.coffee').to_s).and_return(true)
|
66
66
|
expect(konacha_runner).to receive(:run).with('/1')
|
67
67
|
expect(konacha_runner).to receive(:run).with('/foo/bar')
|
68
68
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-konacha-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leonid Beder
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-03-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
180
|
rubyforge_project:
|
181
|
-
rubygems_version: 2.5.
|
181
|
+
rubygems_version: 2.5.1
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Guard plugin for the konacha testing framework
|