vfr292
2010-Apr-15 02:33 UTC
Strange error in unit test => TypeError: wrong argument type Class (expected Module)
I''m running a unit test in rails 2.3.5 Below is the error: 1) Error: test1s(ActionView::TestCase): TypeError: wrong argument type Class (expected Module) Has anyone seen this before? Is there a solution/work around? I have tried changing my testing code, but it always shows up as the fourth test which makes me think that it is a general error rather then something to do with my test. Thank you for you help, ~Victor -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2010-Apr-15 07:25 UTC
Re: Strange error in unit test => TypeError: wrong argument type Class (expected Module)
On 15 April 2010 03:33, vfr292 <vfr292-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m running a unit test in rails 2.3.5 > > Below is the error: > > 1) Error: > test1s(ActionView::TestCase): > TypeError: wrong argument type Class (expected Module) > > Has anyone seen this before? Is there a solution/work around? > > I have tried changing my testing code, but it always shows up as the > fourth test which makes me think that it is a general error rather > then something to do with my test.Can you reduce your test rb file to the minimum that shows the error and paste it here? Actually I would not be surprised if you found the problem while reducing it. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
vfr292
2010-May-20 23:15 UTC
Re: Strange error in unit test => TypeError: wrong argument type Class (expected Module)
Hi, Well, I have have continued to work on this, but with no luck. The error pops up for every test I run for every model and controller (not just the test1 model). Any ideas? ~Victor -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2010-May-21 07:17 UTC
Re: Strange error in unit test => TypeError: wrong argument type Class (expected Module)
On May 21, 12:15 am, vfr292 <vfr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > Well, I have have continued to work on this, but with no luck. > > The error pops up for every test I run for every model and controller > (not just the test1 model). >What does your test case look like ? It looks like you''re writing a test for a view helper, is that view helper a class rather than a module ? Fred> Any ideas? > > ~Victor > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.