質問編集履歴
2
Gemファイルの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -138,6 +138,186 @@
|
|
138
138
|
|
139
139
|
|
140
140
|
|
141
|
+
Gemfile
|
142
|
+
|
143
|
+
```Rails
|
144
|
+
|
145
|
+
source 'https://rubygems.org'
|
146
|
+
|
147
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
ruby '2.5.1'
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
156
|
+
|
157
|
+
gem 'rails', '~> 5.2.3'
|
158
|
+
|
159
|
+
# Use mysql as the database for Active Record
|
160
|
+
|
161
|
+
gem 'mysql2', '>= 0.4.4', '< 0.6.0'
|
162
|
+
|
163
|
+
# Use Puma as the app server
|
164
|
+
|
165
|
+
gem 'puma', '~> 3.11'
|
166
|
+
|
167
|
+
# Use SCSS for stylesheets
|
168
|
+
|
169
|
+
gem 'sass-rails', '~> 5.0'
|
170
|
+
|
171
|
+
# Use Uglifier as compressor for JavaScript assets
|
172
|
+
|
173
|
+
gem 'uglifier', '>= 1.3.0'
|
174
|
+
|
175
|
+
# See https://github.com/rails/execjs#readme for more supported runtimes
|
176
|
+
|
177
|
+
# gem 'mini_racer', platforms: :ruby
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
# Use CoffeeScript for .coffee assets and views
|
182
|
+
|
183
|
+
gem 'coffee-rails', '~> 4.2'
|
184
|
+
|
185
|
+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
190
|
+
|
191
|
+
gem 'jbuilder', '~> 2.5'
|
192
|
+
|
193
|
+
# Use Redis adapter to run Action Cable in production
|
194
|
+
|
195
|
+
# gem 'redis', '~> 4.0'
|
196
|
+
|
197
|
+
# Use ActiveModel has_secure_password
|
198
|
+
|
199
|
+
# gem 'bcrypt', '~> 3.1.7'
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
# Use ActiveStorage variant
|
204
|
+
|
205
|
+
# gem 'mini_magick', '~> 4.8'
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
# Use Capistrano for deployment
|
210
|
+
|
211
|
+
# gem 'capistrano-rails', group: :development
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
# Reduces boot times through caching; required in config/boot.rb
|
216
|
+
|
217
|
+
gem 'bootsnap', '>= 1.1.0', require: false
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
group :development, :test do
|
222
|
+
|
223
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
224
|
+
|
225
|
+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
226
|
+
|
227
|
+
gem 'rspec-rails'
|
228
|
+
|
229
|
+
gem 'factory_bot_rails'
|
230
|
+
|
231
|
+
gem 'rails-controller-testing'
|
232
|
+
|
233
|
+
gem 'faker'
|
234
|
+
|
235
|
+
gem 'capistrano'
|
236
|
+
|
237
|
+
gem 'capistrano-rbenv'
|
238
|
+
|
239
|
+
gem 'capistrano-bundler'
|
240
|
+
|
241
|
+
gem 'capistrano-rails'
|
242
|
+
|
243
|
+
gem 'capistrano3-unicorn'
|
244
|
+
|
245
|
+
end
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
group :development do
|
250
|
+
|
251
|
+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
252
|
+
|
253
|
+
gem 'web-console', '>= 3.3.0'
|
254
|
+
|
255
|
+
gem 'listen', '>= 3.0.5', '< 3.2'
|
256
|
+
|
257
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
258
|
+
|
259
|
+
gem 'spring'
|
260
|
+
|
261
|
+
gem 'spring-watcher-listen', '~> 2.0.0'
|
262
|
+
|
263
|
+
end
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
group :test do
|
268
|
+
|
269
|
+
# Adds support for Capybara system testing and selenium driver
|
270
|
+
|
271
|
+
gem 'capybara', '>= 2.15'
|
272
|
+
|
273
|
+
gem 'selenium-webdriver'
|
274
|
+
|
275
|
+
# Easy installation and use of chromedriver to run system tests with Chrome
|
276
|
+
|
277
|
+
gem 'chromedriver-helper'
|
278
|
+
|
279
|
+
end
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
284
|
+
|
285
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
gem 'jquery-rails'
|
290
|
+
|
291
|
+
gem 'haml-rails'
|
292
|
+
|
293
|
+
gem 'font-awesome-sass'
|
294
|
+
|
295
|
+
gem 'devise'
|
296
|
+
|
297
|
+
gem 'erb2haml'
|
298
|
+
|
299
|
+
gem 'carrierwave'
|
300
|
+
|
301
|
+
gem 'mini_magick'
|
302
|
+
|
303
|
+
gem 'pry-rails'
|
304
|
+
|
305
|
+
gem 'fog-aws'
|
306
|
+
|
307
|
+
gem 'sprockets-es6'
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
group :production do
|
312
|
+
|
313
|
+
gem 'unicorn', '5.4.1'
|
314
|
+
|
315
|
+
end
|
316
|
+
|
317
|
+
```
|
318
|
+
|
319
|
+
|
320
|
+
|
141
321
|
### 試したこと
|
142
322
|
|
143
323
|
|
1
「試したこと」に追記。
test
CHANGED
File without changes
|
test
CHANGED
@@ -146,6 +146,8 @@
|
|
146
146
|
|
147
147
|
データベースのリセット
|
148
148
|
|
149
|
+
rspec ./spec/models/image_spec.rb等、他のファイルでの実行。
|
150
|
+
|
149
151
|
|
150
152
|
|
151
153
|
### 補足情報(FW/ツールのバージョンなど)
|