I was looking to test a method I had created in my "Herd" model. The methods called "safely_assign_herd_usages". I understand how to instantiate a herd e.g. H = Herd.last However, I'm struggling to gain access to the method to test the lines of code within it. Any pointers or help would be greatly appreciated. Thanks.
0
votes
H=Herd.last
then it should beh=Herd.last
(note lowercase 'h'). Uppercase designates constants in Ruby - Les Nightingill