Skip to content

Commit

Permalink
Ensure pending cases are still pending
Browse files Browse the repository at this point in the history
This also removes a pending example for 'Swiss' since it's
not pending anymore.

This should make implementing pending cases a bit simpler,
with better feedback.
  • Loading branch information
cllns committed Jun 14, 2021
1 parent 5244af0 commit 6d1bbd8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions spec/support/fixtures/pluralize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,7 @@ def self.irregular
"criterion" => "criteria",
"thesaurus" => "thesauri",
"plus" => "plusses",
"virus" => "viruses",
"Swiss" => "Swiss"
"virus" => "viruses"
}.freeze
end
end
4 changes: 4 additions & 0 deletions spec/unit/dry/inflector/pluralize_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

Fixtures::Pluralize.pending.each do |singular, plural|
pending "missing exception or rule for #{singular} => #{plural}"

it "fails as expected since it's 'pending' (tip: remove it from pending!)" do
expect(subject.singularize(singular)).to_not eq(plural)
end
end

it "accepts symbols" do
Expand Down
4 changes: 4 additions & 0 deletions spec/unit/dry/inflector/singularize_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

Fixtures::Singularize.pending.each do |plural, singular|
pending "missing exception or rule for #{plural} => #{singular}"

it "fails as expected since it's 'pending' (tip: remove it from pending!)" do
expect(subject.singularize(plural)).to_not eq(singular)
end
end

it "accepts symbols" do
Expand Down

0 comments on commit 6d1bbd8

Please sign in to comment.