質問編集履歴

6

できた時の状態にしました

2020/07/05 08:10

投稿

sasaharukimedes
sasaharukimedes

スコア27

test CHANGED
File without changes
test CHANGED
@@ -78,9 +78,9 @@
78
78
 
79
79
  gem 'webdrivers'
80
80
 
81
- gem 'minitest'
81
+ gem 'minitest' #この2つをコメントアウトした後, 言われたコマンドを打ち込んだらできたっぽいです.
82
-
82
+
83
- gem 'minitest-reporters'
83
+ gem 'minitest-reporters' #
84
84
 
85
85
  end
86
86
 

5

fileを追加しました

2020/07/05 08:10

投稿

sasaharukimedes
sasaharukimedes

スコア27

test CHANGED
File without changes
test CHANGED
@@ -145,3 +145,575 @@
145
145
 
146
146
 
147
147
  ```
148
+
149
+ **Gemlock**
150
+
151
+ ```
152
+
153
+ GEM
154
+
155
+ remote: https://rubygems.org/
156
+
157
+ specs:
158
+
159
+ actioncable (6.0.3.2)
160
+
161
+ actionpack (= 6.0.3.2)
162
+
163
+ nio4r (~> 2.0)
164
+
165
+ websocket-driver (>= 0.6.1)
166
+
167
+ actionmailbox (6.0.3.2)
168
+
169
+ actionpack (= 6.0.3.2)
170
+
171
+ activejob (= 6.0.3.2)
172
+
173
+ activerecord (= 6.0.3.2)
174
+
175
+ activestorage (= 6.0.3.2)
176
+
177
+ activesupport (= 6.0.3.2)
178
+
179
+ mail (>= 2.7.1)
180
+
181
+ actionmailer (6.0.3.2)
182
+
183
+ actionpack (= 6.0.3.2)
184
+
185
+ actionview (= 6.0.3.2)
186
+
187
+ activejob (= 6.0.3.2)
188
+
189
+ mail (~> 2.5, >= 2.5.4)
190
+
191
+ rails-dom-testing (~> 2.0)
192
+
193
+ actionpack (6.0.3.2)
194
+
195
+ actionview (= 6.0.3.2)
196
+
197
+ activesupport (= 6.0.3.2)
198
+
199
+ rack (~> 2.0, >= 2.0.8)
200
+
201
+ rack-test (>= 0.6.3)
202
+
203
+ rails-dom-testing (~> 2.0)
204
+
205
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
206
+
207
+ actiontext (6.0.3.2)
208
+
209
+ actionpack (= 6.0.3.2)
210
+
211
+ activerecord (= 6.0.3.2)
212
+
213
+ activestorage (= 6.0.3.2)
214
+
215
+ activesupport (= 6.0.3.2)
216
+
217
+ nokogiri (>= 1.8.5)
218
+
219
+ actionview (6.0.3.2)
220
+
221
+ activesupport (= 6.0.3.2)
222
+
223
+ builder (~> 3.1)
224
+
225
+ erubi (~> 1.4)
226
+
227
+ rails-dom-testing (~> 2.0)
228
+
229
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
230
+
231
+ activejob (6.0.3.2)
232
+
233
+ activesupport (= 6.0.3.2)
234
+
235
+ globalid (>= 0.3.6)
236
+
237
+ activemodel (6.0.3.2)
238
+
239
+ activesupport (= 6.0.3.2)
240
+
241
+ activerecord (6.0.3.2)
242
+
243
+ activemodel (= 6.0.3.2)
244
+
245
+ activesupport (= 6.0.3.2)
246
+
247
+ activestorage (6.0.3.2)
248
+
249
+ actionpack (= 6.0.3.2)
250
+
251
+ activejob (= 6.0.3.2)
252
+
253
+ activerecord (= 6.0.3.2)
254
+
255
+ marcel (~> 0.3.1)
256
+
257
+ activesupport (6.0.3.2)
258
+
259
+ concurrent-ruby (~> 1.0, >= 1.0.2)
260
+
261
+ i18n (>= 0.7, < 2)
262
+
263
+ minitest (~> 5.1)
264
+
265
+ tzinfo (~> 1.1)
266
+
267
+ zeitwerk (~> 2.2, >= 2.2.2)
268
+
269
+ addressable (2.7.0)
270
+
271
+ public_suffix (>= 2.0.2, < 5.0)
272
+
273
+ ansi (1.5.0)
274
+
275
+ autoprefixer-rails (9.8.4)
276
+
277
+ execjs
278
+
279
+ bcrypt (3.1.13)
280
+
281
+ bindex (0.8.1)
282
+
283
+ bootsnap (1.4.6)
284
+
285
+ msgpack (~> 1.0)
286
+
287
+ bootstrap-sass (3.4.1)
288
+
289
+ autoprefixer-rails (>= 5.2.1)
290
+
291
+ sassc (>= 2.0.0)
292
+
293
+ builder (3.2.4)
294
+
295
+ byebug (11.1.3)
296
+
297
+ capybara (3.33.0)
298
+
299
+ addressable
300
+
301
+ mini_mime (>= 0.1.3)
302
+
303
+ nokogiri (~> 1.8)
304
+
305
+ rack (>= 1.6.0)
306
+
307
+ rack-test (>= 0.6.3)
308
+
309
+ regexp_parser (~> 1.5)
310
+
311
+ xpath (~> 3.2)
312
+
313
+ childprocess (3.0.0)
314
+
315
+ concurrent-ruby (1.1.6)
316
+
317
+ crass (1.0.6)
318
+
319
+ devise (4.7.2)
320
+
321
+ bcrypt (~> 3.0)
322
+
323
+ orm_adapter (~> 0.1)
324
+
325
+ railties (>= 4.1.0)
326
+
327
+ responders
328
+
329
+ warden (~> 1.2.3)
330
+
331
+ devise-i18n (1.9.1)
332
+
333
+ devise (>= 4.7.1)
334
+
335
+ diff-lcs (1.4.4)
336
+
337
+ erubi (1.9.0)
338
+
339
+ execjs (2.7.0)
340
+
341
+ ffi (1.13.1)
342
+
343
+ globalid (0.4.2)
344
+
345
+ activesupport (>= 4.2.0)
346
+
347
+ i18n (1.8.3)
348
+
349
+ concurrent-ruby (~> 1.0)
350
+
351
+ jbuilder (2.10.0)
352
+
353
+ activesupport (>= 5.0.0)
354
+
355
+ listen (3.2.1)
356
+
357
+ rb-fsevent (~> 0.10, >= 0.10.3)
358
+
359
+ rb-inotify (~> 0.9, >= 0.9.10)
360
+
361
+ loofah (2.6.0)
362
+
363
+ crass (~> 1.0.2)
364
+
365
+ nokogiri (>= 1.5.9)
366
+
367
+ mail (2.7.1)
368
+
369
+ mini_mime (>= 0.1.1)
370
+
371
+ marcel (0.3.3)
372
+
373
+ mimemagic (~> 0.3.2)
374
+
375
+ method_source (1.0.0)
376
+
377
+ mimemagic (0.3.5)
378
+
379
+ mini_mime (1.0.2)
380
+
381
+ mini_portile2 (2.4.0)
382
+
383
+ minitest (5.14.1)
384
+
385
+ minitest-reporters (1.4.2)
386
+
387
+ ansi
388
+
389
+ builder
390
+
391
+ minitest (>= 5.0)
392
+
393
+ ruby-progressbar
394
+
395
+ msgpack (1.3.3)
396
+
397
+ nio4r (2.5.2)
398
+
399
+ nokogiri (1.10.9)
400
+
401
+ mini_portile2 (~> 2.4.0)
402
+
403
+ orm_adapter (0.5.0)
404
+
405
+ pg (1.2.3)
406
+
407
+ public_suffix (4.0.5)
408
+
409
+ puma (4.3.5)
410
+
411
+ nio4r (~> 2.0)
412
+
413
+ rack (2.2.3)
414
+
415
+ rack-proxy (0.6.5)
416
+
417
+ rack
418
+
419
+ rack-test (1.1.0)
420
+
421
+ rack (>= 1.0, < 3)
422
+
423
+ rails (6.0.3.2)
424
+
425
+ actioncable (= 6.0.3.2)
426
+
427
+ actionmailbox (= 6.0.3.2)
428
+
429
+ actionmailer (= 6.0.3.2)
430
+
431
+ actionpack (= 6.0.3.2)
432
+
433
+ actiontext (= 6.0.3.2)
434
+
435
+ actionview (= 6.0.3.2)
436
+
437
+ activejob (= 6.0.3.2)
438
+
439
+ activemodel (= 6.0.3.2)
440
+
441
+ activerecord (= 6.0.3.2)
442
+
443
+ activestorage (= 6.0.3.2)
444
+
445
+ activesupport (= 6.0.3.2)
446
+
447
+ bundler (>= 1.3.0)
448
+
449
+ railties (= 6.0.3.2)
450
+
451
+ sprockets-rails (>= 2.0.0)
452
+
453
+ rails-controller-testing (1.0.5)
454
+
455
+ actionpack (>= 5.0.1.rc1)
456
+
457
+ actionview (>= 5.0.1.rc1)
458
+
459
+ activesupport (>= 5.0.1.rc1)
460
+
461
+ rails-dom-testing (2.0.3)
462
+
463
+ activesupport (>= 4.2.0)
464
+
465
+ nokogiri (>= 1.6)
466
+
467
+ rails-html-sanitizer (1.3.0)
468
+
469
+ loofah (~> 2.3)
470
+
471
+ railties (6.0.3.2)
472
+
473
+ actionpack (= 6.0.3.2)
474
+
475
+ activesupport (= 6.0.3.2)
476
+
477
+ method_source
478
+
479
+ rake (>= 0.8.7)
480
+
481
+ thor (>= 0.20.3, < 2.0)
482
+
483
+ rake (13.0.1)
484
+
485
+ rb-fsevent (0.10.4)
486
+
487
+ rb-inotify (0.10.1)
488
+
489
+ ffi (~> 1.0)
490
+
491
+ regexp_parser (1.7.1)
492
+
493
+ responders (3.0.1)
494
+
495
+ actionpack (>= 5.0)
496
+
497
+ railties (>= 5.0)
498
+
499
+ rspec-core (3.9.2)
500
+
501
+ rspec-support (~> 3.9.3)
502
+
503
+ rspec-expectations (3.9.2)
504
+
505
+ diff-lcs (>= 1.2.0, < 2.0)
506
+
507
+ rspec-support (~> 3.9.0)
508
+
509
+ rspec-mocks (3.9.1)
510
+
511
+ diff-lcs (>= 1.2.0, < 2.0)
512
+
513
+ rspec-support (~> 3.9.0)
514
+
515
+ rspec-rails (4.0.1)
516
+
517
+ actionpack (>= 4.2)
518
+
519
+ activesupport (>= 4.2)
520
+
521
+ railties (>= 4.2)
522
+
523
+ rspec-core (~> 3.9)
524
+
525
+ rspec-expectations (~> 3.9)
526
+
527
+ rspec-mocks (~> 3.9)
528
+
529
+ rspec-support (~> 3.9)
530
+
531
+ rspec-support (3.9.3)
532
+
533
+ ruby-progressbar (1.10.1)
534
+
535
+ rubyzip (2.3.0)
536
+
537
+ sass-rails (6.0.0)
538
+
539
+ sassc-rails (~> 2.1, >= 2.1.1)
540
+
541
+ sassc (2.4.0)
542
+
543
+ ffi (~> 1.9)
544
+
545
+ sassc-rails (2.1.2)
546
+
547
+ railties (>= 4.0.0)
548
+
549
+ sassc (>= 2.0)
550
+
551
+ sprockets (> 3.0)
552
+
553
+ sprockets-rails
554
+
555
+ tilt
556
+
557
+ selenium-webdriver (3.142.7)
558
+
559
+ childprocess (>= 0.5, < 4.0)
560
+
561
+ rubyzip (>= 1.2.2)
562
+
563
+ spring (2.1.0)
564
+
565
+ spring-watcher-listen (2.0.1)
566
+
567
+ listen (>= 2.7, < 4.0)
568
+
569
+ spring (>= 1.2, < 3.0)
570
+
571
+ sprockets (4.0.2)
572
+
573
+ concurrent-ruby (~> 1.0)
574
+
575
+ rack (> 1, < 3)
576
+
577
+ sprockets-rails (3.2.1)
578
+
579
+ actionpack (>= 4.0)
580
+
581
+ activesupport (>= 4.0)
582
+
583
+ sprockets (>= 3.0.0)
584
+
585
+ sqlite3 (1.4.2)
586
+
587
+ thor (1.0.1)
588
+
589
+ thread_safe (0.3.6)
590
+
591
+ tilt (2.0.10)
592
+
593
+ turbolinks (5.2.1)
594
+
595
+ turbolinks-source (~> 5.2)
596
+
597
+ turbolinks-source (5.2.0)
598
+
599
+ tzinfo (1.2.7)
600
+
601
+ thread_safe (~> 0.1)
602
+
603
+ warden (1.2.8)
604
+
605
+ rack (>= 2.0.6)
606
+
607
+ web-console (4.0.3)
608
+
609
+ actionview (>= 6.0.0)
610
+
611
+ activemodel (>= 6.0.0)
612
+
613
+ bindex (>= 0.4.0)
614
+
615
+ railties (>= 6.0.0)
616
+
617
+ webdrivers (4.4.1)
618
+
619
+ nokogiri (~> 1.6)
620
+
621
+ rubyzip (>= 1.3.0)
622
+
623
+ selenium-webdriver (>= 3.0, < 4.0)
624
+
625
+ webpacker (4.2.2)
626
+
627
+ activesupport (>= 4.2)
628
+
629
+ rack-proxy (>= 0.6.1)
630
+
631
+ railties (>= 4.2)
632
+
633
+ websocket-driver (0.7.2)
634
+
635
+ websocket-extensions (>= 0.1.0)
636
+
637
+ websocket-extensions (0.1.5)
638
+
639
+ xpath (3.2.0)
640
+
641
+ nokogiri (~> 1.8)
642
+
643
+ zeitwerk (2.3.1)
644
+
645
+
646
+
647
+ PLATFORMS
648
+
649
+ ruby
650
+
651
+
652
+
653
+ DEPENDENCIES
654
+
655
+ bcrypt
656
+
657
+ bootsnap (>= 1.4.2)
658
+
659
+ bootstrap-sass
660
+
661
+ byebug
662
+
663
+ capybara (>= 2.15)
664
+
665
+ devise
666
+
667
+ devise-i18n
668
+
669
+ jbuilder (~> 2.7)
670
+
671
+ listen (~> 3.2)
672
+
673
+ minitest
674
+
675
+ minitest-reporters
676
+
677
+ pg
678
+
679
+ puma (~> 4.1)
680
+
681
+ rails (~> 6.0.3, >= 6.0.3.1)
682
+
683
+ rails-controller-testing
684
+
685
+ rspec-rails
686
+
687
+ sass-rails (>= 6)
688
+
689
+ selenium-webdriver
690
+
691
+ spring
692
+
693
+ spring-watcher-listen (~> 2.0.0)
694
+
695
+ sqlite3
696
+
697
+ turbolinks (~> 5)
698
+
699
+ tzinfo-data
700
+
701
+ web-console (>= 3.3.0)
702
+
703
+ webdrivers
704
+
705
+ webpacker (~> 4.0)
706
+
707
+
708
+
709
+ RUBY VERSION
710
+
711
+ ruby 2.6.5p114
712
+
713
+
714
+
715
+ BUNDLED WITH
716
+
717
+ 2.1.4
718
+
719
+ ```

4

gemfile testを追加しました

2020/07/05 05:35

投稿

sasaharukimedes
sasaharukimedes

スコア27

test CHANGED
File without changes
test CHANGED
@@ -64,6 +64,28 @@
64
64
 
65
65
  end
66
66
 
67
+
68
+
69
+ group :test do
70
+
71
+ # Adds support for Capybara system testing and selenium driver
72
+
73
+ gem 'capybara', '>= 2.15'
74
+
75
+ gem 'selenium-webdriver'
76
+
77
+ # Easy installation and use of web drivers to run system tests with browsers
78
+
79
+ gem 'webdrivers'
80
+
81
+ gem 'minitest'
82
+
83
+ gem 'minitest-reporters'
84
+
85
+ end
86
+
87
+
88
+
67
89
  ```
68
90
 
69
91
 

3

configを追加しました.

2020/07/05 02:47

投稿

sasaharukimedes
sasaharukimedes

スコア27

test CHANGED
File without changes
test CHANGED
@@ -65,3 +65,61 @@
65
65
  end
66
66
 
67
67
  ```
68
+
69
+
70
+
71
+ **Config**
72
+
73
+
74
+
75
+ __application.rb__
76
+
77
+ ```
78
+
79
+ equire_relative 'boot'
80
+
81
+
82
+
83
+ require 'rails/all'
84
+
85
+
86
+
87
+ # Require the gems listed in Gemfile, including any gems
88
+
89
+ # you've limited to :test, :development, or :production.
90
+
91
+ Bundler.require(*Rails.groups)
92
+
93
+
94
+
95
+ module Letters
96
+
97
+ class Application < Rails::Application
98
+
99
+ # Initialize configuration defaults for originally generated Rails version.
100
+
101
+ config.load_defaults 6.0
102
+
103
+
104
+
105
+ config.generators do |g|
106
+
107
+ g.test_framework :rspec
108
+
109
+ end
110
+
111
+ # Settings in config/environments/* take precedence over those specified here.
112
+
113
+ # Application configuration can go into files in config/initializers
114
+
115
+ # -- all .rb files in that directory are automatically loaded after loading
116
+
117
+ # the framework and any gems in your application.
118
+
119
+ config.time_zone = "Tokyo"
120
+
121
+ end
122
+
123
+
124
+
125
+ ```

2

Gemfileを追加しました.

2020/07/05 02:44

投稿

sasaharukimedes
sasaharukimedes

スコア27

test CHANGED
File without changes
test CHANGED
@@ -43,3 +43,25 @@
43
43
 
44
44
 
45
45
  Ruby 2.6, Rails 6.0
46
+
47
+
48
+
49
+ ### 追加情報
50
+
51
+ **Gemfile**
52
+
53
+ ```
54
+
55
+ group :development, :test do
56
+
57
+
58
+
59
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
60
+
61
+ gem 'sqlite3'
62
+
63
+ gem 'rspec-rails'
64
+
65
+ end
66
+
67
+ ```

1

タイトルの書き換えと, 質問内容の変更をしました.

2020/07/04 07:10

投稿

sasaharukimedes
sasaharukimedes

スコア27

test CHANGED
@@ -1 +1 @@
1
- Rspecンストールできません.
1
+ Rspecの諸ファイルが生成・発見できません.
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- Railsでアプリを作っています. testとしてRspecをインストールしたいのですが, いちうまくいきません. 皆様知恵をお貸しください.
5
+ Railsでアプリを作っています. testとしてRspecをインストールはできてる?かもしれませんが, ファイル群が見つかりません. ようにすれば発見・もしくは生成できますでしょうか?
6
6
 
7
7
 
8
8