discourse-follow/spec/integration/user_cards_route_spec.rb
Jarek Radosz 53df1f230c
DEV: Update linting and add types (#167)
* DEV: Update linting and add types

* DEV: Update linting and add types

* DEV: Update linting and add types
2026-01-28 11:49:36 +00:00

17 lines
467 B
Ruby

# frozen_string_literal: true
describe "Attrs added by the plugin to the UserCardSerializer" do
fab!(:follower, :user)
fab!(:followed, :user)
before do
SiteSetting.discourse_follow_enabled = true
Follow::Updater.new(follower, followed).watch_follow
sign_in(follower)
end
it "do not break the /user-cards.json route" do
get "/user-cards.json", params: { user_ids: [followed.id].join(",") }
expect(response.status).to eq(200)
end
end