Skip to content

Commit

Permalink
fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
ujifgc committed Jul 23, 2016
1 parent 560ebda commit ba02c42
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rules
Submodule rules updated 1 files
+5 −0 rules.yml
16 changes: 16 additions & 0 deletions test/petrovich_test.rb
Expand Up @@ -185,6 +185,22 @@
assert_equal 'Штеттеру', lastname
end

it 'inflects male lastname' do
lastname = Petrovich(
lastname: 'Коломиец',
).genitive.lastname

assert_equal 'Коломийца', lastname
end

it 'inflects male lastname' do
lastname = Petrovich(
lastname: 'Быхун',
).instrumental.lastname

assert_equal 'Быхуном', lastname
end

# Future stuff
# Petrovich.scan do |p|
# name = [p.lastname, p.firstname, p.middlename].join(' ')
Expand Down

0 comments on commit ba02c42

Please sign in to comment.