You can test helpers quite easily and it's built into the test framework, so i'm not sure what jasonpgignac is saying Under test/unit/helpers you will see all of your helpers generated by your script/generate scaffold or controller... however you generate them Inside said file, you can just assert that a value is equal, because you are just testing to make sure the result is coming up how you expect. Here's one I pulled from my code: require 'test_helper' class PaymentsHelperTest.
You can test helpers quite easily and it's built into the test framework, so i'm not sure what jasonpgignac is saying. Under test/unit/helpers you will see all of your helpers generated by your script/generate scaffold or controller... however you generate them. Inside said file, you can just assert that a value is equal, because you are just testing to make sure the result is coming up how you expect.
Here's one I pulled from my code: require 'test_helper' class PaymentsHelperTest.
As for tests, there isn't a direct method to test helpers in the test suite that comes with rails, but there is a plugin that adds this functionality: nubyonrails.com/articles/test-your-helpe... haven't used it in a while, but I think it still works.
Ok, thanks for your reply. The helper is only an example not "real world code" :) – startkinder Jul 25 '10 at 15:12 No prob, understand :D. But yes, short answer - test the helpers through the controllers, or there is no helper testing framework built in :).
– jasonpgignac Jul 25 '10 at 17:39.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.