Skip to content

Commit

Permalink
syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DarshanaVenkatesh committed Dec 11, 2024
1 parent 8818dc7 commit 3a7f108
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/mongoid/attributes/readonly_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true
lib/mongoid/attributes/readonly.rb# frozen_string_literal: true
# rubocop:todo all

require "spec_helper"
Expand Down Expand Up @@ -279,11 +279,11 @@ class OldPerson < Person
end
end

it "ensures child inherits the readonly attributes from parent" do
it "ensures subclass inherits the readonly attributes from parent" do
expect(OldPerson.readonly_attributes.to_a).to include("title","terms")
end

it "ensures child does not modify parent's readonly attributes" do
it "ensures subclass does not modify parent's readonly attributes" do
expect(Person.readonly_attributes.to_a).not_to include("age")
end
end
Expand Down

0 comments on commit 3a7f108

Please sign in to comment.