mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
work around for http://meta.discourse.org/t/activerecord-statementinvalid-exception-raised-in-models-user-action-rb/7275/4
This commit is contained in:
@ -87,6 +87,9 @@ describe UserAction do
|
||||
stats_for_user(u).should == [UserAction::NEW_TOPIC]
|
||||
stream_count(u).should == 1
|
||||
|
||||
# duplicate should not exception out
|
||||
log_test_action
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@ -107,6 +110,7 @@ describe UserAction do
|
||||
it "creates a new stream entry" do
|
||||
PostAction.act(liker, post, PostActionType.types[:like])
|
||||
likee_stream.count.should == @old_count + 1
|
||||
|
||||
end
|
||||
|
||||
context "successful like" do
|
||||
|
Reference in New Issue
Block a user