(in /Users/neuro/Desktop/fdv/typo)
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/
rake_test_loader
Started
…
…
…
Finished in 27.227351 seconds.
182 tests, 555 assertions, 0 failures, 0 errors
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/
rake_test_loader
Started
…
…E…E…
…
Finished in 66.038739 seconds.
- Error:
test_edit(Admin::UsersControllerTest):
ActionView::TemplateError: undefined method
`time_delta_from_now_in_words’ for #<#Class:0x3181624:0x304e3ec>
On line #13 of app/views/admin/content/_articles.rhtml
10: <% for article in @articles %>
11: <tr <%= alternate_class %>>
12: <td><%= (article.published?) ? image_tag('checked.gif') :
image_tag(‘x-ed.gif’) %> <%= link_to h(article.title), {:action =>
“show”, :id => article.id} %> <%= link_to_permalink(article,image_tag
(‘go.png’)) %>
13: <%= time_delta_from_now_in_words article.published_at %
14: <td><%= link_to pluralize(article.comments.size,
‘comment’), :controller => ‘/admin/comments’, :article_id =>
article, :action => ‘list’ %>
15: <%= link_to pluralize(article.trackbacks.size,
‘trackback’), :controller => ‘/admin/trackbacks’, :article_id =>
article, :action => ‘list’ %>
16: <%= link_to_edit article %>
#{RAILS_ROOT}/app/views/admin/content/_articles.rhtml:13:in
_run_rhtml_47app47views47admin47content47_articles46rhtml' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/ associations/association_proxy.rb:123:in
each’
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/
associations/association_proxy.rb:123:in send' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/ associations/association_proxy.rb:123:in
method_missing’
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/
associations/has_many_association.rb:98:in method_missing' #{RAILS_ROOT}/app/views/admin/content/_articles.rhtml:10:in
_run_rhtml_47app47views47admin47content47_articles46rhtml’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:
326:in send' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb: 326:in
compile_and_render_template’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:
301:in render_template' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb: 260:in
render_file’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:
275:in render' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/ partials.rb:59:in
render_partial’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
benchmarking.rb:26:in benchmark' /usr/lib/ruby/1.8/benchmark.rb:293:in
measure’
/usr/lib/ruby/1.8/benchmark.rb:307:in realtime' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ benchmarking.rb:26:in
benchmark’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/
partials.rb:58:in render_partial' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb: 287:in
render’
#{RAILS_ROOT}/app/views/admin/users/show.rhtml:23:in
_run_rhtml_47app47views47admin47users47show46rhtml' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb: 326:in
send’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:
326:in compile_and_render_template' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb: 301:in
render_template’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:
260:in render_file' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ base.rb:803:in
render_file’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
base.rb:708:in render_with_no_layout' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ layout.rb:247:in
render_without_benchmark’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
benchmarking.rb:50:in render' /usr/lib/ruby/1.8/benchmark.rb:293:in
measure’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
benchmarking.rb:50:in render' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ base.rb:1093:in
perform_action_without_filters’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:632:in call_filter' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:638:in
call_filter’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:438:in call' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:637:in
call_filter’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:638:in call_filter' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:438:in
call’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:637:in call_filter' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:638:in
call_filter’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:438:in call' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:637:in
call_filter’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:638:in call_filter' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:438:in
call’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:637:in call_filter' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:638:in
call_filter’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:449:in call' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:637:in
call_filter’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:619:in perform_action_without_benchmark' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ benchmarking.rb:66:in
perform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ benchmarking.rb:66:in
perform_action_without_rescue’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
rescue.rb:83:in perform_action' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ base.rb:427:in
send’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
base.rb:427:in process_without_filters' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:624:in
process_without_session_management_support’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
session_management.rb:114:in process_without_test' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ test_process.rb:15:in
process’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
test_process.rb:382:in process' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ test_process.rb:353:in
get’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
test_process.rb:401:in follow_redirect' test/functional/admin/users_controller_test.rb:59:in
test_edit’
test/test_helper.rb:22:in __send__' test/test_helper.rb:22:in
run’
/usr/lib/ruby/1.8/test/unit/testsuite.rb:34:in run' /usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in
each’
/usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in run' /usr/lib/ruby/1.8/test/unit/testsuite.rb:34:in
run’
/usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in each' /usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in
run’
/usr/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in
run_suite' /usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:67:in
start_mediator’
/usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:41:in start' /usr/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in
run’
/usr/lib/ruby/1.8/test/unit/autorunner.rb:200:in run' /usr/lib/ruby/1.8/test/unit/autorunner.rb:13:in
run’
/usr/lib/ruby/1.8/test/unit.rb:278
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/
rake_test_loader.rb:5
- Error:
test_show(Admin::UsersControllerTest):
ActionView::TemplateError: undefined method
`time_delta_from_now_in_words’ for #<#Class:0x3181624:0x31893b0>
On line #13 of app/views/admin/content/_articles.rhtml
10: <% for article in @articles %>
11: <tr <%= alternate_class %>>
12: <td><%= (article.published?) ? image_tag('checked.gif') :
image_tag(‘x-ed.gif’) %> <%= link_to h(article.title), {:action =>
“show”, :id => article.id} %> <%= link_to_permalink(article,image_tag
(‘go.png’)) %>
13: <%= time_delta_from_now_in_words article.published_at %
14: <td><%= link_to pluralize(article.comments.size,
‘comment’), :controller => ‘/admin/comments’, :article_id =>
article, :action => ‘list’ %>
15: <%= link_to pluralize(article.trackbacks.size,
‘trackback’), :controller => ‘/admin/trackbacks’, :article_id =>
article, :action => ‘list’ %>
16: <%= link_to_edit article %>
#{RAILS_ROOT}/app/views/admin/content/_articles.rhtml:13:in
_run_rhtml_47app47views47admin47content47_articles46rhtml' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/ associations/association_proxy.rb:123:in
each’
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/
associations/association_proxy.rb:123:in send' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/ associations/association_proxy.rb:123:in
method_missing’
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/
associations/has_many_association.rb:98:in method_missing' #{RAILS_ROOT}/app/views/admin/content/_articles.rhtml:10:in
_run_rhtml_47app47views47admin47content47_articles46rhtml’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:
326:in send' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb: 326:in
compile_and_render_template’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:
301:in render_template' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb: 260:in
render_file’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:
275:in render' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/ partials.rb:59:in
render_partial’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
benchmarking.rb:26:in benchmark' /usr/lib/ruby/1.8/benchmark.rb:293:in
measure’
/usr/lib/ruby/1.8/benchmark.rb:307:in realtime' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ benchmarking.rb:26:in
benchmark’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/
partials.rb:58:in render_partial' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb: 287:in
render’
#{RAILS_ROOT}/app/views/admin/users/show.rhtml:23:in
_run_rhtml_47app47views47admin47users47show46rhtml' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb: 326:in
send’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:
326:in compile_and_render_template' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb: 301:in
render_template’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:
260:in render_file' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ base.rb:803:in
render_file’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
base.rb:708:in render_with_no_layout' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ layout.rb:247:in
render_without_benchmark’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
benchmarking.rb:50:in render' /usr/lib/ruby/1.8/benchmark.rb:293:in
measure’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
benchmarking.rb:50:in render' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ base.rb:1093:in
perform_action_without_filters’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:632:in call_filter' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:638:in
call_filter’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:438:in call' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:637:in
call_filter’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:638:in call_filter' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:438:in
call’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:637:in call_filter' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:638:in
call_filter’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:438:in call' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:637:in
call_filter’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:638:in call_filter' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:438:in
call’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:637:in call_filter' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:638:in
call_filter’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:449:in call' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:637:in
call_filter’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
filters.rb:619:in perform_action_without_benchmark' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ benchmarking.rb:66:in
perform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ benchmarking.rb:66:in
perform_action_without_rescue’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
rescue.rb:83:in perform_action' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ base.rb:427:in
send’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
base.rb:427:in process_without_filters' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ filters.rb:624:in
process_without_session_management_support’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
session_management.rb:114:in process_without_test' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ test_process.rb:15:in
process’
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/
test_process.rb:382:in process' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/ test_process.rb:353:in
get’
test/functional/admin/users_controller_test.rb:42:in test_show' test/test_helper.rb:22:in
send’
test/test_helper.rb:22:in run' /usr/lib/ruby/1.8/test/unit/testsuite.rb:34:in
run’
/usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in each' /usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in
run’
/usr/lib/ruby/1.8/test/unit/testsuite.rb:34:in run' /usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in
each’
/usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in run' /usr/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in
run_suite’
/usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:67:in
start_mediator' /usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:41:in
start’
/usr/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in run' /usr/lib/ruby/1.8/test/unit/autorunner.rb:200:in
run’
/usr/lib/ruby/1.8/test/unit/autorunner.rb:13:in `run’
/usr/lib/ruby/1.8/test/unit.rb:278
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/
rake_test_loader.rb:5
209 tests, 713 assertions, 0 failures, 2 errors
rake aborted!
Test failures
(See full trace by running task with --trace)
–
Frédéric de Villamil
“Sadness is just another word for not enough coffee” – Scott Adams
[email protected] tel: +33 (0)6 62 19 1337
http://fredericdevillamil.com