what are we doing?
This commit is contained in:
parent
b6b2f9d897
commit
f093cdb813
@ -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
|
||||
|
@ -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' } }
|
||||
|
Loading…
Reference in New Issue
Block a user