This content is also found in the group dropdown so it is not a great test for the dashboard. I usually go for:
 page.should have_css("body.dashboard.show")