-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Igor Kapkov
authored
Jun 19, 2018
1 parent
c3a4cf5
commit 5366812
Showing
4 changed files
with
101 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,5 @@ | ||
defmodule FileTest do | ||
defmodule Faker.FileTest do | ||
use ExUnit.Case, async: true | ||
|
||
test "file_extension/0" do | ||
assert is_binary(Faker.File.file_extension) | ||
end | ||
|
||
test "file_extension/1" do | ||
assert is_binary(Faker.File.file_extension(:audio)) | ||
end | ||
|
||
test "mime_type/0" do | ||
assert is_binary(Faker.File.mime_type) | ||
end | ||
|
||
test "mime_type/1" do | ||
assert is_binary(Faker.File.mime_type(:video)) | ||
end | ||
|
||
test "file_name/0" do | ||
assert is_binary(Faker.File.file_name) | ||
assert String.contains?(Faker.File.file_name, ".") | ||
end | ||
|
||
test "file_name/1" do | ||
assert is_binary(Faker.File.file_name(:office)) | ||
assert String.contains?(Faker.File.file_name(:office), ".") | ||
end | ||
|
||
doctest Faker.File | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
defmodule Gov.UsTest do | ||
defmodule Faker.Gov.UsTest do | ||
use ExUnit.Case, async: true | ||
|
||
import Faker.Gov.Us | ||
|