@@ -63,12 +63,12 @@ def initialize(name, cast_type)
63
63
assert_not_predicate attributes [ "bar" ] , :came_from_user?
64
64
end
65
65
66
- test ":: attribute_types reflects registered attribute types" do
66
+ test ". attribute_types reflects registered attribute types" do
67
67
klass = class_with { attribute :foo , TYPE_1 }
68
68
assert_same TYPE_1 , klass . attribute_types [ "foo" ]
69
69
end
70
70
71
- test ":: attribute_types returns the default type when key is missing" do
71
+ test ". attribute_types returns the default type when key is missing" do
72
72
klass = class_with { attribute :foo , TYPE_1 }
73
73
assert_equal Type ::Value . new , klass . attribute_types [ "bar" ]
74
74
end
@@ -148,7 +148,7 @@ def initialize(name, cast_type)
148
148
assert_nil parent . _default_attributes [ "bar" ] . value
149
149
end
150
150
151
- test ":: decorate_attributes decorates specified attributes" do
151
+ test ". decorate_attributes decorates specified attributes" do
152
152
attributes = default_attributes_for do
153
153
attribute :foo , TYPE_1
154
154
attribute :bar , TYPE_2
@@ -167,7 +167,7 @@ def initialize(name, cast_type)
167
167
assert_same TYPE_2 , attributes [ "qux" ] . type
168
168
end
169
169
170
- test ":: decorate_attributes decorates all attributes when none are specified" do
170
+ test ". decorate_attributes decorates all attributes when none are specified" do
171
171
attributes = default_attributes_for do
172
172
attribute :foo , TYPE_1
173
173
attribute :bar , TYPE_2
@@ -178,7 +178,7 @@ def initialize(name, cast_type)
178
178
assert_same TYPE_2 , attributes [ "bar" ] . type . cast_type
179
179
end
180
180
181
- test ":: decorate_attributes supports conditional decoration" do
181
+ test ". decorate_attributes supports conditional decoration" do
182
182
attributes = default_attributes_for do
183
183
attribute :foo , TYPE_1
184
184
attribute :bar , TYPE_2
@@ -189,7 +189,7 @@ def initialize(name, cast_type)
189
189
assert_same TYPE_2 , attributes [ "bar" ] . type
190
190
end
191
191
192
- test ":: decorate_attributes stacks decorators" do
192
+ test ". decorate_attributes stacks decorators" do
193
193
attributes = default_attributes_for do
194
194
attribute :foo , TYPE_1
195
195
decorate_attributes { |name , type | MyDecorator . new ( "#{ name } 1" , type ) }
0 commit comments