diff --git a/contrib/ruby/jasmine_runner.rb b/contrib/ruby/jasmine_runner.rb index 61ff5e0..dee3b71 100644 --- a/contrib/ruby/jasmine_runner.rb +++ b/contrib/ruby/jasmine_runner.rb @@ -165,8 +165,8 @@ module Jasmine sleep 0.1 end - puts @driver.get_eval("window.getResults()") - failed_count = @driver.get_eval("window.jasmine.getEnv().currentRunner.getResults().failedCount").to_i + puts @driver.get_eval("window.results()") + failed_count = @driver.get_eval("window.jasmine.getEnv().currentRunner.results().failedCount").to_i failed_count == 0 end diff --git a/contrib/ruby/jasmine_spec_builder.rb b/contrib/ruby/jasmine_spec_builder.rb index 4a6e902..ab3ee11 100644 --- a/contrib/ruby/jasmine_spec_builder.rb +++ b/contrib/ruby/jasmine_spec_builder.rb @@ -57,17 +57,17 @@ module Jasmine sleep 0.1 end - @suites = eval_js('JSON.stringify(jsApiReporter.suites)') + @suites = eval_js('JSON.stringify(jsApiReporter.suites())') end def results_for(spec_id) spec_id = spec_id.to_s return @spec_results[spec_id] if @spec_results[spec_id] - @spec_results[spec_id] = eval_js("JSON.stringify(jsApiReporter.results[#{spec_id}])") + @spec_results[spec_id] = eval_js("JSON.stringify(jsApiReporter.resultsForSpec(#{spec_id}))") while @spec_results[spec_id].nil? do sleep 0.1 - @spec_results[spec_id] = eval_js("JSON.stringify(jsApiReporter.results[#{spec_id}])") + @spec_results[spec_id] = eval_js("JSON.stringify(jsApiReporter.resultsForSpec(#{spec_id}))") end @spec_results[spec_id] diff --git a/doc/files.html b/doc/files.html index 5d4b5dd..11410a1 100644 --- a/doc/files.html +++ b/doc/files.html @@ -258,7 +258,7 @@ ul.inheritsList