Ember RC6 update

This commit is contained in:
Robin Ward
2013-07-15 19:47:13 -04:00
parent 75282576b9
commit d466d11e71
23 changed files with 5850 additions and 2002 deletions

View File

@ -130,7 +130,7 @@ test('editingFirstPost', function() {
});
asyncTest('importQuote with a post', function() {
asyncTestDiscourse('importQuote with a post', function() {
expect(1);
this.stub(Discourse.Post, 'load').withArgs(123).returns(Em.Deferred.promise(function (p) {
@ -144,7 +144,7 @@ asyncTest('importQuote with a post', function() {
});
});
asyncTest('importQuote with no post', function() {
asyncTestDiscourse('importQuote with no post', function() {
expect(1);
this.stub(Discourse.Post, 'load').withArgs(4).returns(Em.Deferred.promise(function (p) {

View File

@ -213,7 +213,7 @@ test("identity map", function() {
deepEqual(postStream.listUnloadedIds([1, 2, 3, 4]), [2, 4], "it only returns unloaded posts");
});
asyncTest("loadIntoIdentityMap with no data", function() {
asyncTestDiscourse("loadIntoIdentityMap with no data", function() {
var postStream = buildStream(1234);
expect(1);
@ -224,11 +224,11 @@ asyncTest("loadIntoIdentityMap with no data", function() {
});
});
asyncTest("loadIntoIdentityMap with post ids", function() {
asyncTestDiscourse("loadIntoIdentityMap with post ids", function() {
var postStream = buildStream(1234);
expect(1);
this.stub(Discourse, "ajax").returns(resolvingPromiseWith({
this.stub(Discourse, "ajax").returns(Ember.RSVP.resolve({
post_stream: {
posts: [{id: 10, post_number: 10}]
}