Skip to content

Commit

Permalink
Stop freezing Literal::Data properties (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper authored Dec 6, 2024
1 parent 63dcaf9 commit 3370350
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
6 changes: 0 additions & 6 deletions lib/literal/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,5 @@ def literal_properties
@literal_properties = Literal::Properties::DataSchema.new
end
end

private

def __literal_property_class__
Literal::DataProperty
end
end
end
16 changes: 0 additions & 16 deletions lib/literal/data_property.rb

This file was deleted.

7 changes: 0 additions & 7 deletions test/data.test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ class Empty < Literal::Data
expect(person).to_be(:frozen?)
end

test "mutable attributes are duplicated and frozen" do
name = +"John"
person = Person.new(name:)

expect(person.name).to_be(:frozen?)
end

test "immutable attributes are not duplicated" do
name = "John"
person = Person.new(name:)
Expand Down

0 comments on commit 3370350

Please sign in to comment.