Skip to content

Commit

Permalink
Fix typos (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
achempion authored Nov 20, 2022
2 parents 6a38e9a + bad3127 commit 05210c2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion documentation/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ AWS S3 setup
- create a new user with FullS3Access
- copy `key_id` and `secret`
- create a new backet with *public access*
- comment the `s3` exlusion inside `test/test_helper.exs`
- comment the `s3` exclusion inside `test/test_helper.exs`
- update `.env` file

```sh
Expand Down
2 changes: 1 addition & 1 deletion lib/waffle/definition/storage.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule Waffle.Definition.Storage do
config :waffle,
storage_dir: "my/dir"
### By overriding the relevent functions in definition modules
### By overriding the relevant functions in definition modules
Every definition module has a default `storage_dir/2` which is overridable.
Expand Down
2 changes: 1 addition & 1 deletion lib/waffle/storage/local.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule Waffle.Storage.Local do
# add custom host to url
asset_host: "https://example.com"
If you want to handle your attachements by phoenix application,
If you want to handle your attachments by phoenix application,
configure the endpoint to serve it.
defmodule AppWeb.Endpoint do
Expand Down
4 changes: 2 additions & 2 deletions test/actions/store_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ defmodule WaffleTest.Actions.Store do
def __versions, do: [:original, :thumb, :skipped]
end

test "checks file existance" do
assert DummyDefinition.store("non-existant-file.png") == {:error, :invalid_file_path}
test "checks file existence" do
assert DummyDefinition.store("non-existent-file.png") == {:error, :invalid_file_path}
end

test "delegates to definition validation" do
Expand Down

0 comments on commit 05210c2

Please sign in to comment.