Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more info #19

Merged
merged 14 commits into from
Dec 7, 2023
Prev Previous commit
Next Next commit
checkpoint
  • Loading branch information
dogweather committed Dec 7, 2023
commit 7bc31b652494df7a6e9aa024d1bbaa6c317ade40
4 changes: 2 additions & 2 deletions test/news/parser_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule News.ParserTest do
use ExUnit.Case
doctest News.Parser

@test_cases_for_title [
@test_cases [
%{
file: "qandasec5.asp",
url: "https://www.cde.ca.gov/sp/ch/qandasec5.asp",
Expand All @@ -26,7 +26,7 @@ defmodule News.ParserTest do
]


Enum.each(@test_cases_for_title, fn %{file: f, url: url, title: title, source_name: source_name, source_url: source_url} ->
Enum.each(@test_cases, fn %{file: f, url: url, title: title, source_name: source_name, source_url: source_url} ->
test "finds the title in #{f}" do
{:ok, document} = Floki.parse_document(File.read!(Test.fixture(unquote f)))

Expand Down