Skip to content

Commit 43543f7

Browse files
committed
Update snapshot for test
1 parent c78a9b5 commit 43543f7

File tree

1 file changed

+85
-85
lines changed

1 file changed

+85
-85
lines changed

test/expectations/user.rbs

Lines changed: 85 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
class User < ::ApplicationRecord
2-
extend _ActiveRecord_Relation_ClassMethods[User, ActiveRecord_Relation, Integer]
2+
extend ::_ActiveRecord_Relation_ClassMethods[::User, ::User::ActiveRecord_Relation, ::Integer]
33

44
module GeneratedAttributeMethods
5-
def id: () -> Integer
5+
def id: () -> ::Integer
66

7-
def id=: (Integer) -> Integer
7+
def id=: (::Integer) -> ::Integer
88

99
def id?: () -> bool
1010

1111
def id_changed?: () -> bool
1212

13-
def id_change: () -> [ Integer?, Integer? ]
13+
def id_change: () -> [ ::Integer?, ::Integer? ]
1414

1515
def id_will_change!: () -> void
1616

17-
def id_was: () -> Integer?
17+
def id_was: () -> ::Integer?
1818

1919
def id_previously_changed?: () -> bool
2020

21-
def id_previous_change: () -> Array[Integer?]?
21+
def id_previous_change: () -> ::Array[::Integer?]?
2222

23-
def id_previously_was: () -> Integer?
23+
def id_previously_was: () -> ::Integer?
2424

25-
def id_before_last_save: () -> Integer?
25+
def id_before_last_save: () -> ::Integer?
2626

27-
def id_change_to_be_saved: () -> Array[Integer?]?
27+
def id_change_to_be_saved: () -> ::Array[::Integer?]?
2828

29-
def id_in_database: () -> Integer?
29+
def id_in_database: () -> ::Integer?
3030

31-
def saved_change_to_id: () -> Array[Integer?]?
31+
def saved_change_to_id: () -> ::Array[::Integer?]?
3232

3333
def saved_change_to_id?: () -> bool
3434

@@ -38,33 +38,33 @@ class User < ::ApplicationRecord
3838

3939
def clear_id_change: () -> void
4040

41-
def name: () -> String
41+
def name: () -> ::String
4242

43-
def name=: (String) -> String
43+
def name=: (::String) -> ::String
4444

4545
def name?: () -> bool
4646

4747
def name_changed?: () -> bool
4848

49-
def name_change: () -> [ String?, String? ]
49+
def name_change: () -> [ ::String?, ::String? ]
5050

5151
def name_will_change!: () -> void
5252

53-
def name_was: () -> String?
53+
def name_was: () -> ::String?
5454

5555
def name_previously_changed?: () -> bool
5656

57-
def name_previous_change: () -> Array[String?]?
57+
def name_previous_change: () -> ::Array[::String?]?
5858

59-
def name_previously_was: () -> String?
59+
def name_previously_was: () -> ::String?
6060

61-
def name_before_last_save: () -> String?
61+
def name_before_last_save: () -> ::String?
6262

63-
def name_change_to_be_saved: () -> Array[String?]?
63+
def name_change_to_be_saved: () -> ::Array[::String?]?
6464

65-
def name_in_database: () -> String?
65+
def name_in_database: () -> ::String?
6666

67-
def saved_change_to_name: () -> Array[String?]?
67+
def saved_change_to_name: () -> ::Array[::String?]?
6868

6969
def saved_change_to_name?: () -> bool
7070

@@ -74,33 +74,33 @@ class User < ::ApplicationRecord
7474

7575
def clear_name_change: () -> void
7676

77-
def age: () -> Integer
77+
def age: () -> ::Integer
7878

79-
def age=: (Integer) -> Integer
79+
def age=: (::Integer) -> ::Integer
8080

8181
def age?: () -> bool
8282

8383
def age_changed?: () -> bool
8484

85-
def age_change: () -> [ Integer?, Integer? ]
85+
def age_change: () -> [ ::Integer?, ::Integer? ]
8686

8787
def age_will_change!: () -> void
8888

89-
def age_was: () -> Integer?
89+
def age_was: () -> ::Integer?
9090

9191
def age_previously_changed?: () -> bool
9292

93-
def age_previous_change: () -> Array[Integer?]?
93+
def age_previous_change: () -> ::Array[::Integer?]?
9494

95-
def age_previously_was: () -> Integer?
95+
def age_previously_was: () -> ::Integer?
9696

97-
def age_before_last_save: () -> Integer?
97+
def age_before_last_save: () -> ::Integer?
9898

99-
def age_change_to_be_saved: () -> Array[Integer?]?
99+
def age_change_to_be_saved: () -> ::Array[::Integer?]?
100100

101-
def age_in_database: () -> Integer?
101+
def age_in_database: () -> ::Integer?
102102

103-
def saved_change_to_age: () -> Array[Integer?]?
103+
def saved_change_to_age: () -> ::Array[::Integer?]?
104104

105105
def saved_change_to_age?: () -> bool
106106

@@ -110,33 +110,33 @@ class User < ::ApplicationRecord
110110

111111
def clear_age_change: () -> void
112112

113-
def created_at: () -> ActiveSupport::TimeWithZone
113+
def created_at: () -> ::ActiveSupport::TimeWithZone
114114

115-
def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone
115+
def created_at=: (::ActiveSupport::TimeWithZone) -> ::ActiveSupport::TimeWithZone
116116

117117
def created_at?: () -> bool
118118

119119
def created_at_changed?: () -> bool
120120

121-
def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ]
121+
def created_at_change: () -> [ ::ActiveSupport::TimeWithZone?, ::ActiveSupport::TimeWithZone? ]
122122

123123
def created_at_will_change!: () -> void
124124

125-
def created_at_was: () -> ActiveSupport::TimeWithZone?
125+
def created_at_was: () -> ::ActiveSupport::TimeWithZone?
126126

127127
def created_at_previously_changed?: () -> bool
128128

129-
def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]?
129+
def created_at_previous_change: () -> ::Array[::ActiveSupport::TimeWithZone?]?
130130

131-
def created_at_previously_was: () -> ActiveSupport::TimeWithZone?
131+
def created_at_previously_was: () -> ::ActiveSupport::TimeWithZone?
132132

133-
def created_at_before_last_save: () -> ActiveSupport::TimeWithZone?
133+
def created_at_before_last_save: () -> ::ActiveSupport::TimeWithZone?
134134

135-
def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]?
135+
def created_at_change_to_be_saved: () -> ::Array[::ActiveSupport::TimeWithZone?]?
136136

137-
def created_at_in_database: () -> ActiveSupport::TimeWithZone?
137+
def created_at_in_database: () -> ::ActiveSupport::TimeWithZone?
138138

139-
def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]?
139+
def saved_change_to_created_at: () -> ::Array[::ActiveSupport::TimeWithZone?]?
140140

141141
def saved_change_to_created_at?: () -> bool
142142

@@ -146,33 +146,33 @@ class User < ::ApplicationRecord
146146

147147
def clear_created_at_change: () -> void
148148

149-
def updated_at: () -> ActiveSupport::TimeWithZone
149+
def updated_at: () -> ::ActiveSupport::TimeWithZone
150150

151-
def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone
151+
def updated_at=: (::ActiveSupport::TimeWithZone) -> ::ActiveSupport::TimeWithZone
152152

153153
def updated_at?: () -> bool
154154

155155
def updated_at_changed?: () -> bool
156156

157-
def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ]
157+
def updated_at_change: () -> [ ::ActiveSupport::TimeWithZone?, ::ActiveSupport::TimeWithZone? ]
158158

159159
def updated_at_will_change!: () -> void
160160

161-
def updated_at_was: () -> ActiveSupport::TimeWithZone?
161+
def updated_at_was: () -> ::ActiveSupport::TimeWithZone?
162162

163163
def updated_at_previously_changed?: () -> bool
164164

165-
def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]?
165+
def updated_at_previous_change: () -> ::Array[::ActiveSupport::TimeWithZone?]?
166166

167-
def updated_at_previously_was: () -> ActiveSupport::TimeWithZone?
167+
def updated_at_previously_was: () -> ::ActiveSupport::TimeWithZone?
168168

169-
def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone?
169+
def updated_at_before_last_save: () -> ::ActiveSupport::TimeWithZone?
170170

171-
def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]?
171+
def updated_at_change_to_be_saved: () -> ::Array[::ActiveSupport::TimeWithZone?]?
172172

173-
def updated_at_in_database: () -> ActiveSupport::TimeWithZone?
173+
def updated_at_in_database: () -> ::ActiveSupport::TimeWithZone?
174174

175-
def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]?
175+
def saved_change_to_updated_at: () -> ::Array[::ActiveSupport::TimeWithZone?]?
176176

177177
def saved_change_to_updated_at?: () -> bool
178178

@@ -184,27 +184,27 @@ class User < ::ApplicationRecord
184184
end
185185
include GeneratedAttributeMethods
186186

187-
def avatar_attachment: () -> ActiveStorage::Attachment?
188-
def avatar_attachment=: (ActiveStorage::Attachment?) -> ActiveStorage::Attachment?
189-
def build_avatar_attachment: (?untyped) -> ActiveStorage::Attachment
190-
def create_avatar_attachment: (untyped) -> ActiveStorage::Attachment
191-
def create_avatar_attachment!: (untyped) -> ActiveStorage::Attachment
192-
def reload_avatar_attachment: () -> ActiveStorage::Attachment?
193-
def avatar_blob: () -> ActiveStorage::Blob?
194-
def avatar_blob=: (ActiveStorage::Blob?) -> ActiveStorage::Blob?
195-
def build_avatar_blob: (?untyped) -> ActiveStorage::Blob
196-
def create_avatar_blob: (untyped) -> ActiveStorage::Blob
197-
def create_avatar_blob!: (untyped) -> ActiveStorage::Blob
198-
def reload_avatar_blob: () -> ActiveStorage::Blob?
187+
def avatar_attachment: () -> ::ActiveStorage::Attachment?
188+
def avatar_attachment=: (::ActiveStorage::Attachment?) -> ::ActiveStorage::Attachment?
189+
def build_avatar_attachment: (?untyped) -> ::ActiveStorage::Attachment
190+
def create_avatar_attachment: (untyped) -> ::ActiveStorage::Attachment
191+
def create_avatar_attachment!: (untyped) -> ::ActiveStorage::Attachment
192+
def reload_avatar_attachment: () -> ::ActiveStorage::Attachment?
193+
def avatar_blob: () -> ::ActiveStorage::Blob?
194+
def avatar_blob=: (::ActiveStorage::Blob?) -> ::ActiveStorage::Blob?
195+
def build_avatar_blob: (?untyped) -> ::ActiveStorage::Blob
196+
def create_avatar_blob: (untyped) -> ::ActiveStorage::Blob
197+
def create_avatar_blob!: (untyped) -> ::ActiveStorage::Blob
198+
def reload_avatar_blob: () -> ::ActiveStorage::Blob?
199199

200200
module GeneratedAssociationMethods
201-
def avatar: () -> ActiveStorage::Attached::One
201+
def avatar: () -> ::ActiveStorage::Attached::One
202202

203-
def avatar=: (ActionDispatch::Http::UploadedFile) -> ActionDispatch::Http::UploadedFile
204-
| (Rack::Test::UploadedFile) -> Rack::Test::UploadedFile
205-
| (ActiveStorage::Blob) -> ActiveStorage::Blob
206-
| (String) -> String
207-
| ({ io: IO, filename: String, content_type: String? }) -> { io: IO, filename: String, content_type: String? }
203+
def avatar=: (::ActionDispatch::Http::UploadedFile) -> ::ActionDispatch::Http::UploadedFile
204+
| (::Rack::Test::UploadedFile) -> ::Rack::Test::UploadedFile
205+
| (::ActiveStorage::Blob) -> ::ActiveStorage::Blob
206+
| (::String) -> ::String
207+
| ({ io: ::IO, filename: ::String, content_type: ::String? }) -> { io: ::IO, filename: ::String, content_type: ::String? }
208208
| (nil) -> nil
209209
end
210210
include GeneratedAssociationMethods
@@ -215,7 +215,7 @@ class User < ::ApplicationRecord
215215

216216
def password_confirmation=: (String) -> String
217217

218-
def authenticate_password: (String) -> (User | false)
218+
def authenticate_password: (String) -> (::User | false)
219219

220220
alias authenticate authenticate_password
221221
end
@@ -225,32 +225,32 @@ class User < ::ApplicationRecord
225225
def temporary?: () -> bool
226226
def accepted!: () -> bool
227227
def accepted?: () -> bool
228-
def self.temporary: () -> ActiveRecord_Relation
229-
def self.accepted: () -> ActiveRecord_Relation
230-
def self.all_kind_args: (untyped type, ?untyped m, ?untyped n, *untyped rest, untyped x, ?k: untyped, **untyped untyped) { (*untyped) -> untyped } -> ActiveRecord_Relation
231-
def self.no_arg: () -> ActiveRecord_Relation
232-
def self.with_attached_avatar: () -> ActiveRecord_Relation
228+
def self.temporary: () -> ::User::ActiveRecord_Relation
229+
def self.accepted: () -> ::User::ActiveRecord_Relation
230+
def self.all_kind_args: (untyped type, ?untyped m, ?untyped n, *untyped rest, untyped x, ?k: untyped, **untyped untyped) { (*untyped) -> untyped } -> ::User::ActiveRecord_Relation
231+
def self.no_arg: () -> ::User::ActiveRecord_Relation
232+
def self.with_attached_avatar: () -> ::User::ActiveRecord_Relation
233233

234234
module GeneratedRelationMethods
235-
def temporary: () -> ActiveRecord_Relation
235+
def temporary: () -> ::User::ActiveRecord_Relation
236236

237-
def accepted: () -> ActiveRecord_Relation
237+
def accepted: () -> ::User::ActiveRecord_Relation
238238

239-
def all_kind_args: (untyped type, ?untyped m, ?untyped n, *untyped rest, untyped x, ?k: untyped, **untyped untyped) { (*untyped) -> untyped } -> ActiveRecord_Relation
239+
def all_kind_args: (untyped type, ?untyped m, ?untyped n, *untyped rest, untyped x, ?k: untyped, **untyped untyped) { (*untyped) -> untyped } -> ::User::ActiveRecord_Relation
240240

241-
def no_arg: () -> ActiveRecord_Relation
241+
def no_arg: () -> ::User::ActiveRecord_Relation
242242

243-
def with_attached_avatar: () -> ActiveRecord_Relation
243+
def with_attached_avatar: () -> ::User::ActiveRecord_Relation
244244
end
245245

246246
class ActiveRecord_Relation < ::ActiveRecord::Relation
247-
include GeneratedRelationMethods
248-
include _ActiveRecord_Relation[User, Integer]
249-
include Enumerable[User]
247+
include ::User::GeneratedRelationMethods
248+
include ::_ActiveRecord_Relation[::User, ::Integer]
249+
include ::Enumerable[::User]
250250
end
251251

252252
class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy
253-
include GeneratedRelationMethods
254-
include _ActiveRecord_Relation[User, Integer]
253+
include ::User::GeneratedRelationMethods
254+
include ::_ActiveRecord_Relation[::User, ::Integer]
255255
end
256256
end

0 commit comments

Comments
 (0)