clean up some fixes
This commit is contained in:
parent
09842c0539
commit
8de1bd8cf0
@ -71,7 +71,9 @@ void Runner::loadSpec()
|
||||
outputFiles.enqueue(outputFile);
|
||||
}
|
||||
|
||||
page.mainFrame()->load(runnerFiles.dequeue());
|
||||
QString runnerFile = runnerFiles.dequeue();
|
||||
|
||||
page.mainFrame()->load(runnerFile);
|
||||
ticker.start();
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,11 @@ module Jasmine
|
||||
|
||||
command += targets.flatten.collect do |target|
|
||||
target = File.expand_path(target)
|
||||
target = server_uri + target if options[:use_server]
|
||||
if options[:use_server]
|
||||
target = server_uri + target
|
||||
else
|
||||
target = "file://" + target
|
||||
end
|
||||
target
|
||||
end
|
||||
|
||||
|
@ -70,7 +70,7 @@ describe Jasmine::Headless::Runner do
|
||||
end
|
||||
|
||||
def self.it_should_have_basics
|
||||
it { should include(target) }
|
||||
it { should include('file://' + File.expand_path(target)) }
|
||||
end
|
||||
|
||||
context 'colors' do
|
||||
|
Loading…
Reference in New Issue
Block a user