diff options
author | Aaron Peckham <apeckham@gmail.com> | 2013-05-07 15:09:54 -0700 |
---|---|---|
committer | pushmatrix <daniel.beauchamp@gmail.com> | 2013-05-09 21:27:14 +0200 |
commit | 1a974c754789b0b675d39442cead91213f706851 (patch) | |
tree | 275996a22af820678cfcfd44fe648f9e4f5c3b4a /bin/dashing | |
parent | 31bdc6da2706eec95c54ca46cb8e544661296bf6 (diff) |
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.
Diffstat (limited to 'bin/dashing')
-rwxr-xr-x | bin/dashing | 8 |
1 files changed, 0 insertions, 8 deletions
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 |