Topic: Select list fails view tests

I am not sure why but rpsec will not allow the following test to pass.  The options are rendered to the browser fine.

  it "should populate the region select list" do
    render "/members/new.rhtml"
    response.should have_tag("select[id=address_region]") do  #the top part of the test DOES pass
      with_tag("option")  # with_tag("option", "Texas") fails as well

<% form_for(:member, :url => members_path) do |f| %>
<p><label for="address_region">Province / State:</label>            <%= :region, Province.find(:all).map{ |p| [, p.province_id] } %></p>

<select id="address_region" name="address[region]">
<option value="3917">Tennessee</option>
<option value="3918">Texas</option>
<option value="3919">Utah</option>
<option value="3920">Vermont</option>

Thanks for the help

Last edited by iso (2007-11-06 20:35:13)

Re: Select list fails view tests

it turns out that I lacked any fixture data to actually fill the select list.