Skip to content

Commit

Permalink
Fix tests and update docs
Browse files Browse the repository at this point in the history
Fixes #45
  • Loading branch information
serpro69 committed Apr 28, 2021
1 parent 5d444ef commit cace76d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and the project versioning adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)

## [v1.7.1] - 2020-04-28
### Fixed
- [#45](https://github.com/serpro69/kotlin-faker/pull/45) [core] Parameter 'city_name' not found in 'address'

## [v1.7.0] - 2020-04-16
### Added
- [#59](https://github.com/serpro69/kotlin-faker/pull/59) [core] Random money amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,9 @@
"name":"io.github.serpro69.kfaker.provider.Address",
"methods":[
{"name":"buildingNumber","parameterTypes":[] },
{"name":"city","parameterTypes":[] },
{"name":"cityWithState","parameterTypes":[] },
{"name":"city","parameterTypes":[] },
{"name":"cityName","parameterTypes":[] },
{"name":"cityWithState","parameterTypes":[] },
{"name":"community","parameterTypes":[] },
{"name":"country","parameterTypes":[] },
{"name":"countryByCode","parameterTypes":["java.lang.String"] },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ class IntrospectorTest : DescribeSpec() {
val expectedFunctions = listOf(
"buildingNumber",
"city",
"cityName",
"cityWithState",
"community",
"country",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ val addressCategoryKeys = listOf(
"state_abbr",
"time_zone",
"city",
"city_name",
"city_with_state",
"street_name",
"street_address",
Expand Down
3 changes: 3 additions & 0 deletions doc/address.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ Faker().address.timeZone() // => Pacific/Midway

Faker().address.city() // => Bartville

// This one is the same as 'city' and is added to fix discrepancies between localized and English dictionaries (see #45)
Faker().address.cityName() // => Bartville

Faker().address.cityWithState() // => Bartville, Indiana

Faker().address.streetName() // => Adams Brook
Expand Down

0 comments on commit cace76d

Please sign in to comment.