Skip to content

Commit

Permalink
Change version to 2.0 on README installation section (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
guisehn authored Aug 6, 2023
1 parent 8f555a6 commit 6eca50d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Add the `:corsica` dependency to your project's `mix.exs`:
defp deps do
[
{:plug, "~> 1.0"},
{:corsica, "~> 1.0"}
{:corsica, "~> 2.0"}
]
end
```
Expand Down
11 changes: 11 additions & 0 deletions test/readme_test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
defmodule ReadmeTest do
use ExUnit.Case, async: true

test "version in readme matches mix.exs" do
readme_markdown = File.read!(Path.join(__DIR__, "../README.md"))
mix_config = Mix.Project.config()
version = mix_config[:version]
[major_version | _] = String.split(version, ".")
assert readme_markdown =~ ~s({:corsica, "~> #{major_version}.0"})
end
end

0 comments on commit 6eca50d

Please sign in to comment.