what are we doing?
This commit is contained in:
parent
b6b2f9d897
commit
f093cdb813
@ -21,6 +21,7 @@ module Guard
|
|||||||
end
|
end
|
||||||
|
|
||||||
def run_all
|
def run_all
|
||||||
|
UI.info "Guard::JasmineHeadlessWebkit running all specs..."
|
||||||
JasmineHeadlessWebkitRunner.run if run_before and run_jammit
|
JasmineHeadlessWebkitRunner.run if run_before and run_jammit
|
||||||
@ran_jammit = false
|
@ran_jammit = false
|
||||||
end
|
end
|
||||||
@ -31,6 +32,7 @@ module Guard
|
|||||||
if run_before and run_jammit
|
if run_before and run_jammit
|
||||||
@ran_jammit = true
|
@ran_jammit = true
|
||||||
if !paths.empty?
|
if !paths.empty?
|
||||||
|
UI.info "Guard::JasmineHeadlessWebkit running the following: #{paths.join(' ')}"
|
||||||
JasmineHeadlessWebkitRunner.run(paths)
|
JasmineHeadlessWebkitRunner.run(paths)
|
||||||
else
|
else
|
||||||
run_all
|
run_all
|
||||||
|
@ -69,6 +69,7 @@ describe Guard::JasmineHeadlessWebkit do
|
|||||||
before do
|
before do
|
||||||
Guard::JasmineHeadlessWebkitRunner.expects(:run).never
|
Guard::JasmineHeadlessWebkitRunner.expects(:run).never
|
||||||
Guard::UI.expects(:info).with(regexp_matches(/false/))
|
Guard::UI.expects(:info).with(regexp_matches(/false/))
|
||||||
|
Guard::UI.expects(:info).with(regexp_matches(/running all/))
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:options) { { :run_before => 'false' } }
|
let(:options) { { :run_before => 'false' } }
|
||||||
@ -82,6 +83,7 @@ describe Guard::JasmineHeadlessWebkit do
|
|||||||
before do
|
before do
|
||||||
Guard::JasmineHeadlessWebkitRunner.expects(:run).once
|
Guard::JasmineHeadlessWebkitRunner.expects(:run).once
|
||||||
Guard::UI.expects(:info).with(regexp_matches(/true/))
|
Guard::UI.expects(:info).with(regexp_matches(/true/))
|
||||||
|
Guard::UI.expects(:info).with(regexp_matches(/running all/))
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:options) { { :run_before => 'true' } }
|
let(:options) { { :run_before => 'true' } }
|
||||||
|
Loading…
Reference in New Issue
Block a user