Permalink
Browse files

Changed GitHubDataSource to be a DS.Adapter

  • Loading branch information...
pangratz committed Jul 23, 2012
1 parent 78cc14a commit 8c960a5bcfcda95ba72048006cf0601655296d63
Showing with 2 additions and 1 deletion.
  1. +1 −1 app/lib/github_data_source.js
  2. +1 −0 app/tests/github_data_source_test.js
@@ -1,6 +1,6 @@
require('dashboard/core');
-Dashboard.GitHubDataSource = Ember.Object.extend({
+Dashboard.GitHubDataSource = DS.Adapter.extend({
PREFIX: 'https://api.github.com',
ajax: function(url, target, callback) {
@@ -16,6 +16,7 @@ module("Dashboard.GitHubDataSource", setupDataSource);
test("is defined", function() {
ok(Dashboard.GitHubDataSource, "is defined");
+ ok(DS.Adapter.detect(Dashboard.GitHubDataSource), "it is a DS.Adapter");
});
test("_ajaxSuccess invokes callback on target", function() {

0 comments on commit 8c960a5

Please sign in to comment.