質問編集履歴

2

application.rbを追記しました。

2019/06/19 22:45

投稿

napoano365
napoano365

スコア28

test CHANGED
File without changes
test CHANGED
@@ -129,3 +129,67 @@
129
129
  詳細をご存じの方、お力添え頂けますと幸いです。
130
130
 
131
131
  宜しくお願いします。m(_ _)m
132
+
133
+
134
+
135
+
136
+
137
+ [20190620_追記]
138
+
139
+ ```
140
+
141
+ application.rb
142
+
143
+
144
+
145
+ ====
146
+
147
+ require_relative 'boot'
148
+
149
+ require 'rails/all'
150
+
151
+
152
+
153
+ # Require the gems listed in Gemfile, including any gems
154
+
155
+ # you've limited to :test, :development, or :production.
156
+
157
+ Bundler.require(*Rails.groups)
158
+
159
+
160
+
161
+ #対策:DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`set to false is deprecated.
162
+
163
+ Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
164
+
165
+
166
+
167
+ module InstaClone
168
+
169
+ class Application < Rails::Application
170
+
171
+ # Settings in config/environments/* take precedence over those specified here.
172
+
173
+ # Application configuration should go into files in config/initializers
174
+
175
+ # -- all .rb files in that directory are automatically loaded.
176
+
177
+ config.generators do |g|
178
+
179
+ g.test_framework :rspec,
180
+
181
+ fixtures: false,
182
+
183
+ view_specs: false,
184
+
185
+ helper_specs: false,
186
+
187
+ routing_specs: false
188
+
189
+ end
190
+
191
+ end
192
+
193
+ end
194
+
195
+ ```

1

誤字修正

2019/06/19 22:45

投稿

napoano365
napoano365

スコア28

test CHANGED
@@ -1 +1 @@
1
- RSpec導入後_bin/rspecを実行するとndefined method `config' for nil:NilClass (NoMethodError)がでる
1
+ RSpec導入後_bin/rspecを実行するとundefined method `config' for nil:NilClass (NoMethodError)がでる
test CHANGED
File without changes