move bio to UserProfile from User

This commit is contained in:
Andrew Bezzub
2014-06-10 01:19:08 -04:00
committed by Robin Ward
parent 10f0ddbbdd
commit 9ffd173873
12 changed files with 211 additions and 105 deletions

View File

@@ -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