DEV: Fix spec (#13225)

Follow-up to 624edac3bb
This commit is contained in:
Gerhard Schlager 2021-06-01 11:51:32 +02:00 committed by GitHub
parent 10c4fe5025
commit fb4dc2f35c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1993,8 +1993,8 @@ describe User do
end
it "triggers an event" do
event = DiscourseEvent.track_events { user.unstage! }.first
expect(event[:event_name]).to eq(:user_unstaged)
event = DiscourseEvent.track(:user_unstaged) { user.unstage! }
expect(event).to be_present
expect(event[:params].first).to eq(user)
end
end