Skip to content

Commit 0737765

Browse files
committed
We don't use :: to denote class methods
1 parent 2e40616 commit 0737765

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

activemodel/test/cases/attribute_registration_test.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ def initialize(name, cast_type)
6363
assert_not_predicate attributes["bar"], :came_from_user?
6464
end
6565

66-
test "::attribute_types reflects registered attribute types" do
66+
test ".attribute_types reflects registered attribute types" do
6767
klass = class_with { attribute :foo, TYPE_1 }
6868
assert_same TYPE_1, klass.attribute_types["foo"]
6969
end
7070

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
7272
klass = class_with { attribute :foo, TYPE_1 }
7373
assert_equal Type::Value.new, klass.attribute_types["bar"]
7474
end
@@ -148,7 +148,7 @@ def initialize(name, cast_type)
148148
assert_nil parent._default_attributes["bar"].value
149149
end
150150

151-
test "::decorate_attributes decorates specified attributes" do
151+
test ".decorate_attributes decorates specified attributes" do
152152
attributes = default_attributes_for do
153153
attribute :foo, TYPE_1
154154
attribute :bar, TYPE_2
@@ -167,7 +167,7 @@ def initialize(name, cast_type)
167167
assert_same TYPE_2, attributes["qux"].type
168168
end
169169

170-
test "::decorate_attributes decorates all attributes when none are specified" do
170+
test ".decorate_attributes decorates all attributes when none are specified" do
171171
attributes = default_attributes_for do
172172
attribute :foo, TYPE_1
173173
attribute :bar, TYPE_2
@@ -178,7 +178,7 @@ def initialize(name, cast_type)
178178
assert_same TYPE_2, attributes["bar"].type.cast_type
179179
end
180180

181-
test "::decorate_attributes supports conditional decoration" do
181+
test ".decorate_attributes supports conditional decoration" do
182182
attributes = default_attributes_for do
183183
attribute :foo, TYPE_1
184184
attribute :bar, TYPE_2
@@ -189,7 +189,7 @@ def initialize(name, cast_type)
189189
assert_same TYPE_2, attributes["bar"].type
190190
end
191191

192-
test "::decorate_attributes stacks decorators" do
192+
test ".decorate_attributes stacks decorators" do
193193
attributes = default_attributes_for do
194194
attribute :foo, TYPE_1
195195
decorate_attributes { |name, type| MyDecorator.new("#{name}1", type) }

0 commit comments

Comments
 (0)