Displaying 1 result from an estimated 1 matches for "new_client_variation".
2006 May 19
1
Need help with a test
Hi,
I have this controller method that I need to test:
def link_concept_to_client
concept_to_link = Concept.find(params[:concept_id])
# take all the variations for the concept
for variation in concept_to_link.variations
new_client_variation = ClientVariation.new
new_client_variation.client = session[:active_client]
new_client_variation.variation = variation
new_client_variation.name_fr = variation.name_fr
new_client_variation.name_en = variation.name_en
new_client_variation.save
end
flash[:notice]...