Created
December 7, 2011 10:53
-
-
Save dangerousbeans/1442384 to your computer and use it in GitHub Desktop.
An example of using the have_selector in rspec2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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