I'll try that, but by the method name, I assume it looks for a
<label> tag for the field rather than the name attribute of the
<input> ?
On Dec 30, 2008, at 12:56 AM, Josh Knowles wrote:
On Mon, Dec 29, 2008 at 10:59 PM, Jonathan Linowes
<jonat...@parkerhill.com> wrote:
# Then /^the email_confirmation field should be cleared$/ do
# #how to write this ????
# #selector( "input[name=user[email_confirmation]")[:value].should
be_blank
# end
Are you using Webrat? If so try:
field_labeled("Email Confirmation").value.should be_nil
--
Josh Knowles
phone: 509-979-1593
email: joshknow...@gmail.com
web: http://joshknowles.com
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users