Displaying 1 result from an estimated 1 matches for "test_update_title".
2006 Mar 20
2
Testing Models And Fixtures
...id, @post.id
assert_equal @basic_post.title, @post.title
assert_equal @basic_post.body, @post.body
assert_equal @basic_post.created_at,
@post.created_at_before_type_cast
assert_equal @basic_post.updated_at,
@post.updated_at_before_type_cast
end
def test_update_title
assert_equal "Title", @post.title
@post.title = "New Title"
assert @post.save, @post.errors.full_messages.join("; ")
@post.reload
assert_equal "New Title", @post.title
end
def test_destroy
@post.destroy
asse...