fix specs.

This commit is contained in:
Roger Braun 2017-08-29 17:22:22 +02:00
parent 6c3a0ffae4
commit 4b03c43fd7

View File

@ -50,7 +50,9 @@ test "A user" do
"profile_image_url_original" => image, "profile_image_url_original" => image,
"following" => false, "following" => false,
"rights" => %{}, "rights" => %{},
"statusnet_profile_url" => user.ap_id "statusnet_profile_url" => user.ap_id,
"cover_photo" => nil,
"background_image" => nil
} }
assert represented == UserView.render("show.json", %{user: user}) assert represented == UserView.render("show.json", %{user: user})
@ -76,7 +78,9 @@ test "A user for a given other follower", %{user: user} do
"profile_image_url_original" => image, "profile_image_url_original" => image,
"following" => true, "following" => true,
"rights" => %{}, "rights" => %{},
"statusnet_profile_url" => user.ap_id "statusnet_profile_url" => user.ap_id,
"cover_photo" => nil,
"background_image" => nil
} }
assert represented == UserView.render("show.json", %{user: user, for: follower}) assert represented == UserView.render("show.json", %{user: user, for: follower})