- test "it can parse mentions and return the relevant users" do
- text = "@gsimg According to @archaeme , that is @daggsy."
-
- gsimg = insert(:user, %{nickname: "gsimg"})
- archaeme = insert(:user, %{nickname: "archaeme"})
-
- expected_result = [
- {"@gsimg", gsimg},
- {"@archaeme", archaeme}
- ]
-
- assert TwitterAPI.parse_mentions(text) == expected_result
- end
-