$: << File.dirname(__FILE__) + "/../lib" require 'rubygems' require 'ruby-crowdflower' require 'json' API_KEY = ENV["API_KEY"] unless API_KEY && API_KEY.size > 5 puts < true say "-- Waiting for CrowdFlower to finish copying the job." # You could also register a webhook to have CrowdFlower notify your # server. wait_until { job2.get["units_count"] == 8 } say "Checking the status of the job." assert job.status["tainted_judgments"] == 0 say "Registering a webhook." job.update :webhook_uri => "http://localhost:8080/crowdflower" say "Webhook test needs to be written." #job.test_webhook say ">-< Tests complete. >-<"