FEATURE: Allow a user to upload an image for their expansion background.

This commit is contained in:
Robin Ward
2014-10-16 15:05:36 -04:00
parent bde0820cd4
commit 4d465362b5
11 changed files with 112 additions and 9 deletions
+10
View File
@@ -32,6 +32,16 @@ describe UserSerializer do
end
end
context "with filled out expansion background" do
before do
user.user_profile.expansion_background = 'http://expansion.com'
end
it "has a profile background" do
expect(json[:expansion_background]).to eq 'http://expansion.com'
end
end
context "with filled out profile background" do
before do
user.user_profile.profile_background = 'http://background.com'