guard-zeus-client 0.1.0 → 0.1.1
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.
@@ -76,9 +76,9 @@ module Guard
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def test_dirs
|
79
|
-
if File.exists?(
|
79
|
+
if File.exists?("spec/spec_helper.rb")
|
80
80
|
['spec']
|
81
|
-
elsif File.exist?(
|
81
|
+
elsif File.exist?("test/minitest_helper.rb")
|
82
82
|
minitest_dirs
|
83
83
|
else
|
84
84
|
Dir['test/**/*_test.rb'] + Dir['test/**/test_*.rb']
|
@@ -3,6 +3,16 @@ require 'spec_helper'
|
|
3
3
|
describe Guard::ZeusClient::Runner do
|
4
4
|
subject(:runner) { described_class.new }
|
5
5
|
|
6
|
+
describe '#run_all' do
|
7
|
+
context 'with rspec' do
|
8
|
+
it 'should run all specs in the spec dir' do
|
9
|
+
runner.should_receive(:run).with(['spec'], anything)
|
10
|
+
|
11
|
+
runner.run_all
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
6
16
|
describe 'notifications' do
|
7
17
|
context 'when the zeus command fails' do
|
8
18
|
before do
|