what are we doing?

This commit is contained in:
John Bintz 2011-06-10 11:50:25 -04:00
parent b6b2f9d897
commit f093cdb813
2 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,7 @@ module Guard
end
def run_all
UI.info "Guard::JasmineHeadlessWebkit running all specs..."
JasmineHeadlessWebkitRunner.run if run_before and run_jammit
@ran_jammit = false
end
@ -31,6 +32,7 @@ module Guard
if run_before and run_jammit
@ran_jammit = true
if !paths.empty?
UI.info "Guard::JasmineHeadlessWebkit running the following: #{paths.join(' ')}"
JasmineHeadlessWebkitRunner.run(paths)
else
run_all

View File

@ -69,6 +69,7 @@ describe Guard::JasmineHeadlessWebkit do
before do
Guard::JasmineHeadlessWebkitRunner.expects(:run).never
Guard::UI.expects(:info).with(regexp_matches(/false/))
Guard::UI.expects(:info).with(regexp_matches(/running all/))
end
let(:options) { { :run_before => 'false' } }
@ -82,6 +83,7 @@ describe Guard::JasmineHeadlessWebkit do
before do
Guard::JasmineHeadlessWebkitRunner.expects(:run).once
Guard::UI.expects(:info).with(regexp_matches(/true/))
Guard::UI.expects(:info).with(regexp_matches(/running all/))
end
let(:options) { { :run_before => 'true' } }