mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: only allow badge title selection if it exists
This commit is contained in:
@ -11,8 +11,12 @@ describe UsersController do
|
||||
let!(:user) { log_in }
|
||||
|
||||
it 'returns success' do
|
||||
xhr :get, :show, username: user.username
|
||||
xhr :get, :show, username: user.username, format: :json
|
||||
response.should be_success
|
||||
json = JSON.parse(response.body)
|
||||
|
||||
json["user"]["has_title_badges"].should == false
|
||||
|
||||
end
|
||||
|
||||
it "returns not found when the username doesn't exist" do
|
||||
|
Reference in New Issue
Block a user