Sorry David,
I don't really understand.
> When(/^I pick "(.*)" from (.*)$/) do |option_value, field_name|
> field_name.gsub(' ','').constantize.find_or_create_by_name(option_value)
> selects option_value, :from => field_name
> end
>> field_name.gsub(' ','').constantize.find_or_create_by_name(option_value)
-- This line creates a new ArticleCategory, but where does that
ArticleCategory go, or how is it used?
>> selects option_value, :from => field_name
-- Then this tries to select that ArticleCategory from the select
control?
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users