gon icon indicating copy to clipboard operation
gon copied to clipboard

gon.rabl makes test fail

Open ylecuyer opened this issue 9 years ago • 4 comments

When I have gon.rabl as: 'sites' in my controller my functional test fails.

It says: NoMethodError: undefined method controller_path' for nil:NilClass`

ylecuyer avatar Apr 08 '15 22:04 ylecuyer

Hello, thank you for issue. Can you please provide simple app with failing test? Or at least example code of failing test. Thank you in advance

gazay avatar Apr 09 '15 04:04 gazay

There is a sample app : http://s000.tinyupload.com/index.php?file_id=51122105514226965471

ylecuyer avatar Apr 09 '15 18:04 ylecuyer

Great, downloading

gazay avatar Apr 10 '15 05:04 gazay

I'm having the same issue with jbuilder. I assume the controller is defined slightly different when mocked out during functional tests in rails.

Did you ever reproduce the issue?

vegetabill avatar Jul 10 '15 00:07 vegetabill