search for: persist_as_domain

Displaying 1 result from an estimated 1 matches for "persist_as_domain".

Did you mean: persist_as_domains
2006 Dec 21
1
need some guidance with a test
This is part of a rails project. The following method is part of the Ams class (a rails model). I''m a bit unsure of the rspec/bdd way of testing this method. def persist_as_domains @current_domains.each do |d| dom = Domain.new dom.domain = d dom.source_id = 1 dom.at = Time.now dom.save end end The following is what came out when I tried to write my test. Notice that the only thing I''m testing here is that each method is called a certain numb...