ruby on rails - testing with before_filter -
I have developed the first_filter - and should get in the tests like
test "index "Receive: index assert_response: Success assigns assert_not_nil (: article) end
me
test_should_get_index (ArticleControllerTest): NoMethodError: your Close when you did not expect it, then the null object! You were probably hoping to be an example of Aare Nil.split app / controller / application_controller.rb: 20: in
set_locale '/test/functional/articles_controller_test.rbitter : In the error when evaluating the code
Test_should_get_index '
when I have added
setup @ request.headers [' HTTP_ACCEPT_LANGUAGE ' Nothing changed: (can you tell me that PLG - what's wrong? Rail 2.3.2, Ruby 1.8
I The problem is solved with the request
@ request.env ['HOST'] = "somesite.com" @. [HTTP_ACCEPT_LANGUAGE '] = "n"
Comments
Post a Comment