mirror of
https://github.com/zhigang1992/tsemple.git
synced 2026-04-30 05:35:29 +08:00
Rename content column to body
This commit is contained in:
@@ -49,11 +49,11 @@ class TopicsControllerTest < ActionController::TestCase
|
||||
test "should update topic" do
|
||||
topic = create(:topic)
|
||||
assert_login_required topic.user do
|
||||
patch :update, id: topic, topic: { title: 'change', content: 'change' }
|
||||
patch :update, id: topic, topic: { title: 'change', body: 'change' }
|
||||
end
|
||||
topic.reload
|
||||
assert_equal 'change', topic.title
|
||||
assert_equal 'change', topic.content
|
||||
assert_equal 'change', topic.body
|
||||
assert_redirected_to topic
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user