mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
move bio to UserProfile from User
This commit is contained in:
committed by
Robin Ward
parent
10f0ddbbdd
commit
9ffd173873
@@ -41,5 +41,20 @@ describe UserSerializer do
|
||||
expect(json[:website]).to eq 'http://example.com'
|
||||
end
|
||||
end
|
||||
|
||||
context "with filled out bio" do
|
||||
before do
|
||||
user.user_profile.bio_raw = 'my raw bio'
|
||||
user.user_profile.bio_cooked = 'my cooked bio'
|
||||
end
|
||||
|
||||
it "has a bio" do
|
||||
expect(json[:bio_raw]).to eq 'my raw bio'
|
||||
end
|
||||
|
||||
it "has a cooked bio" do
|
||||
expect(json[:bio_cooked]).to eq 'my cooked bio'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user