Navigation Menu

Skip to content

Commit

Permalink
added ability for street_address to also include secondary address
Browse files Browse the repository at this point in the history
  • Loading branch information
cheezy committed Dec 22, 2012
1 parent 26720ae commit 7d906cb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
@@ -1,6 +1,7 @@
=== Version 0.11
* Enhancements
* Added title translator
* Added ability for street_address translator to also include secondary address

=== Version 0.10 / 2012-12-8
* Enhancements
Expand Down
1 change: 1 addition & 0 deletions features/data_magic.feature
Expand Up @@ -18,6 +18,7 @@ Feature: Functionality of the data_magic gem

Scenario: Getting addresses from the yaml
Then the value for "street" should have a minimum of 2 words
And the value for "street_plus" should have a minimum of 4 words
And the value for "city" should have a minimum of 1 word
And the value for "state" should have a minimum of 1 word
And the value for "state_ab" should be 1 word long
Expand Down
1 change: 1 addition & 0 deletions features/yaml/example.yml
Expand Up @@ -7,6 +7,7 @@ dm:
name_prefix: ~name_prefix
name_suffix: ~name_suffix
street: ~street_address
street_plus: ~street_address(true)
city: ~city
state: ~state
state_ab: ~state_abbr
Expand Down
4 changes: 2 additions & 2 deletions lib/data_magic/translation.rb
Expand Up @@ -45,8 +45,8 @@ def title
#
# return a random street address
#
def street_address
Faker::Address.street_address
def street_address(include_secondary=false)
Faker::Address.street_address(include_secondary)
end

#
Expand Down

0 comments on commit 7d906cb

Please sign in to comment.