mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 14:57:56 +08:00
fix spec
This commit is contained in:
parent
1f3c5cb656
commit
239d8b6795
@ -58,7 +58,7 @@ test('destroy by staff', function() {
|
||||
var user = Discourse.User.create({username: 'staff', staff: true});
|
||||
var post = buildPost({user: user});
|
||||
|
||||
this.stub(Discourse, 'ajax');
|
||||
this.stub(Discourse, 'ajax').returns(new Em.Deferred());
|
||||
post.destroy(user);
|
||||
|
||||
present(post.get('deleted_at'), "it has a `deleted_at` field.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user