We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e88dd21 commit 3d25e16Copy full SHA for 3d25e16
1 file changed
spec/integration/syntax_suggest_spec.rb
@@ -203,6 +203,30 @@ def bark
203
EOM
204
end
205
206
+ it "multi-line chain with missing paren" do
207
+ source = <<~EOM
208
+ class Dog
209
+ def bark
210
+ User
211
+ .where(name: "schneems"
212
+ .first
213
+ end
214
215
+ EOM
216
+
217
+ io = StringIO.new
218
+ SyntaxSuggest.call(
219
+ io: io,
220
+ source: source
221
+ )
222
+ out = io.string
223
+ expect(out).to include(<<~EOM)
224
+ > 3 User
225
+ > 4 .where(name: "schneems"
226
+ > 5 .first
227
228
229
230
it "empty else" do
231
source = <<~EOM
232
class Foo
0 commit comments