change contain_text to assert_contain_text
use .text_content() method