use the better syntax `expect(flash[:alert]).to have_content "abc"`