Add javascript tracker and give Blocmetrics the capability to receive and record events from the js tracker.

I added a test in the api spec to confirm the correct structure of the api
request. Did a manual test of the js code separately and it functions as it
should.


On Thu, Jul 24, 2014 at 7:16 AM, Oliver Azevedo Barnes <
notifications@github.com> wrote:

> In spec/javascripts/js_webstub_spec.js:
>
> > @@ -0,0 +1,16 @@
> > +//= require spec_helper
> > +//= require js_webstub
> > +
> > +describe("Blocmetrics_track#postEvent", function() {
>
> Good progress on this test and the design of the implementation. It's not
> testing the payload (the event data you're sending) yet though. It's
> important to do this to ensure it's what the api expects.
>
> Also good to do a manual test to ensure the integration between the event
> poster code and the api works
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/wasafiri/blocmetrics/pull/7/files#r15348318>.
>