Mike Sassak wrote:
> What happens if you remove the b and br tags from within the label and
> change the text to "Legal Form" only, without the colon?
I get exactly the same behaviour:
entities/new
...
<p>
<b>
<label class="input_box" for="entity_entity_legal_form"
title="Legal form is one of PERS, CORP or PART">Legal Form</label>
</b> <br />
<select id="entity_entity_legal_form"
name="entity[entity_legal_form]"><option value="">Select the type of
entity</option>
<option value="CORP">CORP - Corporation</option>
<option value="PART">PART - Partnership</option>
<option value="PERS">PERS - Natural Person</option></select> </p>
...
# rake features
...
And I select "CORP" from "Legal Form" #
features/step_definitions/webrat_steps.rb:16
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.choose (NoMethodError)
/usr/lib/ruby/gems/1.8/gems/webrat-0.3.2/lib/webrat/core/scope.rb:91:in
`selects'
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users