18 lines
353 B
Elixir
18 lines
353 B
Elixir
defmodule Bright.XPostTest do
|
|
use Bright.DataCase
|
|
|
|
alias Bright.Socials.XPost
|
|
|
|
@sample_feed "https://rss.app/feeds/FhPetvUY036xiFau.xml"
|
|
|
|
describe "x_posts" do
|
|
# import Bright.SocialsFixtures
|
|
|
|
@tag :integration
|
|
test "get_posts/1" do
|
|
{:ok, posts} = XPost.get_posts(@sample_feed)
|
|
assert length(posts) > 0
|
|
end
|
|
end
|
|
end
|