mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
Ember RC6 update
This commit is contained in:
@ -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) {
|
||||
|
@ -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}]
|
||||
}
|
||||
|
Reference in New Issue
Block a user