mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
Upgrade Ember to 1.1.2
This commit is contained in:
@ -17,7 +17,7 @@ asyncTestDiscourse('find', function() {
|
||||
});
|
||||
|
||||
asyncTestDiscourse('generateMasterKey', function() {
|
||||
this.stub(Discourse, 'ajax').returns(Ember.RSVP.resolve([]));
|
||||
this.stub(Discourse, 'ajax').returns(Ember.RSVP.resolve({api_key: {}}));
|
||||
Discourse.ApiKey.generateMasterKey().then(function() {
|
||||
start();
|
||||
ok(Discourse.ajax.calledWith("/admin/api/key", {type: 'POST'}), "it POSTs to create a master key");
|
||||
|
Reference in New Issue
Block a user