質問編集履歴

4

助言をいただだいた後の結果。

2019/03/25 16:09

投稿

amedama
amedama

スコア37

test CHANGED
File without changes
test CHANGED
@@ -281,3 +281,213 @@
281
281
  最後まで読んでくださりありがとうございます。
282
282
 
283
283
  お力添えよろしくお願いします。
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+ ### 変更後
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+ 連絡お待たせしました。
306
+
307
+ ご助言通りに試した後、
308
+
309
+ Rspecを実行したところ、以下のエラーが起きました。
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+ ```
320
+
321
+
322
+
323
+ $ bundle exec rspec spec/system/tasks_spec.rb
324
+
325
+
326
+
327
+ Capybara starting Puma...
328
+
329
+ * Version 3.12.0 , codename: Llamas in Pajamas
330
+
331
+ * Min threads: 0, max threads: 4
332
+
333
+ * Listening on tcp://127.0.0.1:33295
334
+
335
+ /home/ec2-user/.rvm/gems/ruby-2.5.1/bin/rspec: No such file or directory - google-chrome
336
+
337
+ /home/ec2-user/.rvm/gems/ruby-2.5.1/bin/rspec: No such file or directory - google-chrome
338
+
339
+ F
340
+
341
+
342
+
343
+ Failures:
344
+
345
+
346
+
347
+ 1) タスク管理機能 一覧表示機能 ユーザーAがログインしているとき ユーザーAが作成したタスクが表示される
348
+
349
+ Got 0 failures and 2 other errors:
350
+
351
+
352
+
353
+ 1.1) Failure/Error: visit login_path
354
+
355
+
356
+
357
+ NoMethodError:
358
+
359
+ undefined method `chomp' for nil:NilClass
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/webdrivers-3.7.0/lib/webdrivers/chromedriver.rb:69:in `chrome_version'
368
+
369
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/webdrivers-3.7.0/lib/webdrivers/chromedriver.rb:55:in `release_version'
370
+
371
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/webdrivers-3.7.0/lib/webdrivers/chromedriver.rb:19:in `latest_version'
372
+
373
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/webdrivers-3.7.0/lib/webdrivers/common.rb:37:in `desired_version'
374
+
375
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/webdrivers-3.7.0/lib/webdrivers/common.rb:16:in `update'
376
+
377
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/webdrivers-3.7.0/lib/webdrivers/selenium.rb:7:in `driver_path'
378
+
379
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.14.0/lib/selenium/webdriver/chrome/driver.rb:38:in `initialize'
380
+
381
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.14.0/lib/selenium/webdriver/common/driver.rb:44:in `new'
382
+
383
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.14.0/lib/selenium/webdriver/common/driver.rb:44:in `for'
384
+
385
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.14.0/lib/selenium/webdriver.rb:86:in `for'
386
+
387
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/capybara-3.6.0/lib/capybara/selenium/driver.rb:31:in `browser'
388
+
389
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/capybara-3.6.0/lib/capybara/selenium/driver.rb:58:in `visit'
390
+
391
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/capybara-3.6.0/lib/capybara/session.rb:269:in `visit'
392
+
393
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/capybara-3.6.0/lib/capybara/dsl.rb:51:in `block (2 levels) in <module:DSL>'
394
+
395
+ # ./spec/system/tasks_spec.rb:13:in `block (4 levels) in <top (required)>'
396
+
397
+
398
+
399
+ 1.2) Failure/Error:
400
+
401
+ ver = case platform
402
+
403
+ when 'win'
404
+
405
+ chrome_on_windows
406
+
407
+ when /linux/
408
+
409
+ chrome_on_linux
410
+
411
+ when 'mac'
412
+
413
+ chrome_on_mac
414
+
415
+ else
416
+
417
+ raise NotImplementedError, 'Your OS is not supported by webdrivers gem.'
418
+
419
+ end.chomp
420
+
421
+
422
+
423
+ NoMethodError:
424
+
425
+ undefined method `chomp' for nil:NilClass
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/webdrivers-3.7.0/lib/webdrivers/chromedriver.rb:69:in `chrome_version'
434
+
435
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/webdrivers-3.7.0/lib/webdrivers/chromedriver.rb:55:in `release_version'
436
+
437
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/webdrivers-3.7.0/lib/webdrivers/chromedriver.rb:19:in `latest_version'
438
+
439
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/webdrivers-3.7.0/lib/webdrivers/common.rb:37:in `desired_version'
440
+
441
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/webdrivers-3.7.0/lib/webdrivers/common.rb:16:in `update'
442
+
443
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/webdrivers-3.7.0/lib/webdrivers/selenium.rb:7:in `driver_path'
444
+
445
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.14.0/lib/selenium/webdriver/chrome/driver.rb:38:in `initialize'
446
+
447
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.14.0/lib/selenium/webdriver/common/driver.rb:44:in `new'
448
+
449
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.14.0/lib/selenium/webdriver/common/driver.rb:44:in `for'
450
+
451
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.14.0/lib/selenium/webdriver.rb:86:in `for'
452
+
453
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/capybara-3.6.0/lib/capybara/selenium/driver.rb:31:in `browser'
454
+
455
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/capybara-3.6.0/lib/capybara/selenium/driver.rb:112:in `save_screenshot'
456
+
457
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/capybara-3.6.0/lib/capybara/session.rb:709:in `block in save_screenshot'
458
+
459
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/capybara-3.6.0/lib/capybara/session.rb:709:in `tap'
460
+
461
+ # /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/capybara-3.6.0/lib/capybara/session.rb:709:in `save_screenshot'
462
+
463
+
464
+
465
+ Finished in 0.91785 seconds (files took 1.09 seconds to load)
466
+
467
+ 1 example, 1 failure
468
+
469
+
470
+
471
+ Failed examples:
472
+
473
+
474
+
475
+ rspec ./spec/system/tasks_spec.rb:19 # タスク管理機能 一覧表示機能 ユーザーAがログインしているとき ユーザーAが作成したタスクが表示 される
476
+
477
+
478
+
479
+
480
+
481
+ ```
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+ なるべく、自力で解決したいのですが、解決の糸口が見えません。
492
+
493
+ どこを修正すればよいかご助言いただけますか?

3

2019/03/25 16:09

投稿

amedama
amedama

スコア37

test CHANGED
@@ -1 +1 @@
1
- Rspec実行の際に出たエラー、ChromeDriverとChromeのバージョンの調整方法について。
1
+ ChromeDriverとChromeのバージョンの調整方法について。
test CHANGED
File without changes

2

2019/03/25 12:20

投稿

amedama
amedama

スコア37

test CHANGED
File without changes
test CHANGED
File without changes

1

誤字訂正

2019/03/25 12:10

投稿

amedama
amedama

スコア37

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- 現在、Railを勉強しています。
7
+ 現在、Railsを勉強しています。
8
8
 
9
9
  現場で使えるRuby on Rails 5 速習実践ガイドという教材を進めています。
10
10