Skip to content

Commit

Permalink
Merge pull request #37 from cllns/ensure-pending-cases-are-still-pending
Browse files Browse the repository at this point in the history
Ensure pending cases are still pending
  • Loading branch information
solnic authored Jun 18, 2021
2 parents 3a8f737 + 6d1bbd8 commit 8699cec
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 8699cec

Please sign in to comment.