[rspec-devel] [ rspec-Feature Requests-6807 ] port assert_select

noreply at rubyforge.org noreply at rubyforge.org
Tue Nov 21 17:43:09 EST 2006


Feature Requests item #6807, was opened at 2006-11-21 14:27
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=6807&group_id=797

Category: rails plugin
Group: None
Status: Open
Priority: 3
Submitted By: David Chelimsky (dchelimsky)
Assigned to: Nobody (None)
Summary: port assert_select

Initial Comment:
Add an rspec implementation of assert_select. Need to decide whether to just duplicate existing API (using repsonse.should_have?????) or actually devise a more integrated API like this:

repsonse.should_include(:form).with(:action => "blah")

or

response.should_include(:form).with do |form|
  form.should_include(:input).with(:name => 'age', :type => 'text')
end

or some such.

----------------------------------------------------------------------

Comment By: Wilson Bilkovich (wilson)
Date: 2006-11-21 17:43

Message:
I like the:
repsonse.should_include(:form).with(:action => "blah")
version, myself.
The third seems to promote really detailed expectations about the HTML, and I think that way lies madness.

If someone writes the specs for it, I will code it.



----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=6807&group_id=797


More information about the rspec-devel mailing list