Displaying 1 result from an estimated 1 matches for "proceduretest".
Did you mean:
procedure_test
2012 Jan 27
3
How to test the model dependence ?
...evelopment. See
if anyone can help me with a test problem. I need to test if my model
"Procedure" is linked to the workflow. If not, the system must
acknowledge an error. Below is the code that is in the file test \ unit
\ procedure_test.rb.
require ''test_helper''
class ProcedureTest < ActiveSupport::TestCase
should belong_to :workflow
should has_many :tasks, :through => :workflow
#should has_one :timeline
#should has_many :timeline_items, :through => :timeline
end
The shoul "belong_to" is working normally but when running "rake test"
appea...