lib/capistrano/ghostinspector.rb in capistrano-ghostinspector-1.0.1 vs lib/capistrano/ghostinspector.rb in capistrano-ghostinspector-1.0.2
- old
+ new
@@ -84,11 +84,15 @@
Capistrano::Ghostinspector.getTests(fetch(:gisuite), gi_config["suites"], fetch(:gi_default_suite)).each do |suite|
puts "* * * Running Ghost Inspector Suite * * *"
set :data, giApi.executeApi("suites", suite)
data[1]["data"].each do |test|
- items = { :passing => test["passing"], :results => test, :type => "suites"}
+ items = {
+ :passing => giApi.shouldWaitForResults() ? true : test["passing"],
+ :results => test,
+ :type => "suites"
+ }
@collection << items
end
end
@@ -190,6 +194,6 @@
end
if Capistrano::Configuration.instance
Capistrano::Ghostinspector.load_into(Capistrano::Configuration.instance)
-end
\ No newline at end of file
+end