質問編集履歴
1
fixtureファイルのコードの誤字脱字の可能性を指摘されたので加筆しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
Rails チュートリアルをしているRails初学者です
|
2
1
|
Rails チュートリアル13章の13.2.3のテストを実行した結果以下のようなエラーが出てしまい解消できずにいます
|
3
2
|
|
4
3
|
### 発生している問題・エラーメッセージ
|
@@ -79,4 +78,41 @@
|
|
79
78
|
|
80
79
|
|
81
80
|
これはそもそも別の部分に問題があるのでしょうか?
|
82
|
-
お分かりになる方がいらっしゃいましたらご教授願います
|
81
|
+
お分かりになる方がいらっしゃいましたらご教授願います
|
82
|
+
|
83
|
+
### 追記
|
84
|
+
```
|
85
|
+
|
86
|
+
|
87
|
+
```
|
88
|
+
**microposts.yml**
|
89
|
+
|
90
|
+
|
91
|
+
orange:
|
92
|
+
content: "I just ate an orange!"
|
93
|
+
created_at: <%= 10.minutes.ago %>
|
94
|
+
user: michael
|
95
|
+
|
96
|
+
tau_manifesto:
|
97
|
+
content: "Check out the @tauday site by @mhartl: http://tauday.com"
|
98
|
+
created_at: <%= 3.years.ago %>
|
99
|
+
user: michael
|
100
|
+
|
101
|
+
cat_video:
|
102
|
+
content: "Sad cats are sad: http://youtu.be/PKffm2uI4dk"
|
103
|
+
created_at: <%= 2.hours.ago %>
|
104
|
+
user: michael
|
105
|
+
|
106
|
+
most_recent:
|
107
|
+
content: "Writing a short test"
|
108
|
+
created_at: <%= Time.zone.now %>
|
109
|
+
user: michael
|
110
|
+
|
111
|
+
<% 30.times do |n| %>
|
112
|
+
micropost_<%= n %>:
|
113
|
+
content: <%= Faker::Lorem.sentence(5) %>
|
114
|
+
created_at: <%= 42.days.ago %>
|
115
|
+
user: michael
|
116
|
+
<% end %>
|
117
|
+
|
118
|
+
```
|