search for: complete_contact

Displaying 1 result from an estimated 1 matches for "complete_contact".

2010 Aug 18
2
RSpec 2/Rails 3 - content_for in view specs
...ered.capture(:sidebar), rendered[:sidebar], view.capture(:sidebar), etc. and none of them worked -- they all give various errors. Here is my view spec that I''m trying to run: describe "contacts/show.html.erb" do it "shows a URL if present" do @contact = Factory(:complete_contact, :web_page => " http://www.example.com") # Using Factory Girl render rendered.should have_selector("span", :content => " http://www.example.com") end end Thank you! Dylan Markow dmarkow at gmail.com -------------- next part -------------- An HTML atta...