Added contributor flag to api spec

This commit is contained in:
Absurdon 2019-11-13 00:20:18 +01:00
parent db9d4c1564
commit 8dce3c8d6b
No known key found for this signature in database
GPG key ID: E383BEAE6F394B2F

View file

@ -19,6 +19,7 @@ describe Api::V1::UsersController do
expect(json["referee"]).to eq(user.ref?) expect(json["referee"]).to eq(user.ref?)
expect(json["caster"]).to eq(user.caster?) expect(json["caster"]).to eq(user.caster?)
expect(json["moderator"]).to eq(user.gather_moderator?) expect(json["moderator"]).to eq(user.gather_moderator?)
expect(json["contributor"]).to eq(user.contributor?)
expect(json).to have_key("steam") expect(json).to have_key("steam")
expect(json["steam"]).to have_key("id") expect(json["steam"]).to have_key("id")
expect(json["steam"]).to have_key("url") expect(json["steam"]).to have_key("url")