use have_selector in rspec testing