search for: should_not_have

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

2007 Feb 15
1
Specs for RJS HTML output NOT containing an element
...rtial to update a page. I just added a parameter to get passed into this partial to eliminate a row in the table it generates, but I can''t find a way to test that the unwanted output is in fact missing. should(_not)_have_tag doesn''t work with RJS, and there''s no should_not_have from assert select. What I''ve just cobbled together is this addition to my spec_helper.rb: module Spec module Rails class AssertSelectWrapper def should_not_have(*opts) begin should_have(*opts) rescue Spec::Expect...