From 1a974c754789b0b675d39442cead91213f706851 Mon Sep 17 00:00:00 2001 From: Aaron Peckham Date: Tue, 7 May 2013 15:09:54 -0700 Subject: Test that the Sinatra app redirects to the default dashboard; saves data posted to /widgets/X, and requires auth; returns data on /events; returns the sample dashboards; and returns sample widgets. --- bin/dashing | 8 -------- 1 file changed, 8 deletions(-) (limited to 'bin') diff --git a/bin/dashing b/bin/dashing index 8c7e348..30824ce 100755 --- a/bin/dashing +++ b/bin/dashing @@ -11,14 +11,6 @@ class MockScheduler end end -def send_event(id, data) - req = Net::HTTP::Post.new("/widgets/#{id}") - req["content-type"] = "application/json" - req.body = JSON.unparse(data.merge(:auth_token => Dashing::CLI.auth_token)) - res = Net::HTTP.new('localhost', 3030).start { |http| http.request(req) } - puts "Data Sent to #{id}: #{data}" -end - SCHEDULER = MockScheduler.new module Dashing -- cgit v1.2.3