spec/mongoid/extensions/string_spec.rb in mongoid-7.3.5 vs spec/mongoid/extensions/string_spec.rb in mongoid-7.4.0
- old
+ new
@@ -1,7 +1,6 @@
# frozen_string_literal: true
-# encoding: utf-8
require "spec_helper"
describe Mongoid::Extensions::String do
@@ -195,17 +194,17 @@
class Patient
include Mongoid::Document
end
end
- it "returns an underscored tableized name" do
+ it "returns an underscored table-ized name" do
expect(Medical::Patient.name.collectionize).to eq("medical_patients")
end
end
context "when class is not namespaced" do
- it "returns an underscored tableized name" do
+ it "returns an underscored table-ized name" do
expect(MixedDrink.name.collectionize).to eq("mixed_drinks")
end
end
end