James Byrne wrote:

> 
> I'll be damned... It works.
> 
> Thank you so very much. I would never have connected "option_text" to 
> the description portion of the list.

This is what I ended up with:

features/entity.features
...
  Scenario: Attempt to ADD a VALID entity
    Given I am on the new entity page
    When I add a new entity correctly
      And I press "Create"
    Then I should see a success confirmation
...

steps/entity.steps
...
Given /I am on the new entity page/ do
  visits "/entities/new"
end

When /I add a new entity correctly/ do
  fills_in("Common Name", :with => "My Common Name")
  fills_in("Full Legal Name", :with => "My Legal Name")
  selects("CORP - Corporation", :from => "Legal Form")
end

Then /I should see a success confirmation/ do
  response.body.should =~ /successfully created/m
end
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to