old_contents: var App, targetController, pusherController, channelName, bindings;
  
  var FakeController = Em.Controller.extend(EmberPusher.Bindings, {
    PUSHER_SUBSCRIPTIONS: {
      craycraychannel: ['event-one', 'event-two']
    },
    eventOne: function(){ return "event-one-fired"; },
    eventTwo: function(){ return "event-two-fired"; }
  });
  
  Ember.Application.initializer({
    name: "registerFakeController",
    initialize: function(container, application) {
      container.register('controller:fake', FakeController);
      targetController = container.lookup('controller:fake');
    }
  });
  
  App = Ember.Application.create({
    PUSHER_OPTS: { key: 'foo' }
  });
  
  describe("Controller", function() {
  
    before(function(){
      pusherController = App.__container__.lookup('controller:pusher');
      channelName = 'craycraychannel';
      bindings = pusherController.get('bindings');
    });
  
    describe("sanity", function(){
      it("exists", function() {
        assert.ok(EmberPusher.Controller, "Ember.PusherController exists");
        assert.ok(pusherController.get('connection'), "pusher connection initialized");
      });
  
      it("initializes the bindings object properly", function() {
        assert.ok(pusherController.get('bindings'));
      });
    });
  
    describe("wire", function() {
      it("initializes channelName in the bindings hash", function() {
        assert.ok(pusherController.get('bindings')[channelName], "Creates a channel name");
      });
      it("initializes eventBindings in the bindings hash", function() {
        var targetId = targetController._pusherEventsId();
        assert.ok(bindings[channelName].eventBindings[targetId].length == 2, "Knows about two bound events");
      });
    });
  
    describe("channelFor", function() {
      it("returns a channel object", function() {
        var channel = pusherController.channelFor(channelName);
        assert.ok(channel, "channel defined");
      });
    });
  
  });
  
new_contents: var App, targetController, pusherController, channelName, bindings;
  
  var FakeController = Em.Controller.extend(EmberPusher.Bindings, {
    PUSHER_SUBSCRIPTIONS: {
      craycraychannel: ['event-one', 'event-two']
    },
    eventOne: function(){ return "event-one-fired"; },
    eventTwo: function(){ return "event-two-fired"; }
  });
  
  Ember.Application.initializer({
    name: "registerFakeController",
    initialize: function(container, application) {
      container.register('controller:fake', FakeController);
      targetController = container.lookup('controller:fake');
    }
  });
  
  App = Ember.Application.create({
    PUSHER_OPTS: { key: 'foo' }
  });
  
  describe("Controller", function() {
  
    before(function(){
      pusherController = App.__container__.lookup('controller:pusher');
      channelName = 'craycraychannel';
      bindings = pusherController.get('bindings');
    });
  
    describe("sanity", function(){
      it("exists", function() {
        assert.ok(EmberPusher.Controller, "Ember.PusherController exists");
        assert.ok(pusherController.get('connection'), "pusher connection initialized");
      });
  
      it("initializes the bindings object properly", function() {
        assert.ok(pusherController.get('bindings'));
      });
    });
  
    describe("wire", function() {
      it("initializes channelName in the bindings hash", function() {
        assert.ok(pusherController.get('bindings')[channelName], "Creates a channel name");
      });
  
      it("initializes eventBindings in the bindings hash", function() {
        var targetId = targetController._pusherEventsId();
        assert.ok(bindings[channelName].eventBindings[targetId].length == 2, "Knows about two bound events");
      });
    });
  
    describe("channelFor", function() {
      it("returns a channel object", function() {
        var channel = pusherController.channelFor(channelName);
        assert.ok(channel, "channel defined");
      });
    });
  
  });
  
subject: Update controller test