Skip to content

Instantly share code, notes, and snippets.

@dangerousbeans
Created December 7, 2011 10:53
Show Gist options
  • Save dangerousbeans/1442384 to your computer and use it in GitHub Desktop.
Save dangerousbeans/1442384 to your computer and use it in GitHub Desktop.
An example of using the have_selector in rspec2
it "displays recently viewed destination for each viewed destination" do
get :show, :id => @destination
rendered.should have_selector('img.hotel_image', :count => 2)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment