Skip to content

Commit

Permalink
Update readme test
Browse files Browse the repository at this point in the history
  • Loading branch information
doorgan authored Aug 12, 2021
1 parent af2675f commit 94ea48e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/readme_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ defmodule SourcerorTest.ReadmeTest do
@readme readme

test "the version numbers match" do
assert @readme |> hd |> elem(0) =~ @project[:version]
[_, version] = Regex.run(~r/\{:sourceror, "~> (.*)"\}/, @readme |> hd |> elem(0))
assert @project[:version] =~ version
end

env = __ENV__
Expand Down

0 comments on commit 94ea48e

Please sign in to comment.