Sha256: 7238964479c1361cb4a8cd4d410abe30c98a6da2e05a24697ce1983cd077b500
Contents?: true
Size: 661 Bytes
Versions: 80
Compression:
Stored size: 661 Bytes
Contents
//Testing the controller to make sure it gets properly attached to debug views QUnit.test("when if_controller_init is called with a view that has the debug flag on, it uses the DebugController", function(assert) { //Setup prototypes html $("body").html("<div id='prototypes'></div>") if_init_view("my_test_view", {}, 1, ["main", "content"]); //Create a controller that belongs to a debug view (it has data-debug='1') if_controller_init(0, 1, "my_test_controller", {}); //Uses DebugController assert.equal(cinstances[0].constructor, DebugController, "") //Has the correct name assert.equal(cinstances[0].name, "my_test_controller", "") });
Version data entries
80 entries across 80 versions & 1 rubygems