Skip to content
Permalink
Browse files
Changed GitHubDataSource to be a DS.Adapter
  • Loading branch information
pangratz committed Jul 23, 2012
1 parent 78cc14a commit 8c960a5bcfcda95ba72048006cf0601655296d63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
@@ -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.