Displaying 1 result from an estimated 1 matches for "timeline_items".
2012 Jan 27
3
How to test the model dependence ?
...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"
appears the following error:
$ Rake test
/ home / guilhermec / iba_jornais / test / unit / procedure_test.rb: 5:
in `‘: undefined method `has_many’ for ProcedureTest:Class
(NoM...