Defect #26504

Rails 5 unit and functional tests

Added by Toshi MARUYAMA 24 days ago. Updated 23 days ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:4.0.0
Resolution: Affected version:

Description

On trunk r16872, "rake test:units" and "rake test:functionals" cannot run.
Rails 5 changes directories.

  • test/unit -> test/models
  • test/functional -> test/controllers

http://guides.rubyonrails.org/testing.html#rails-sets-up-for-testing-from-the-word-go

Associated revisions

Revision 16873
Added by Toshi MARUYAMA 24 days ago

add empty directories to run "rake test:units" and "rake test:functionals" (#26504)

Revision 16930
Added by Jean-Philippe Lang 17 days ago

Move helper tests to test/helpers (#26504).

Revision 16931
Added by Jean-Philippe Lang 17 days ago

Removes test/unit/helpers (#26504).

History

#1 Updated by Toshi MARUYAMA 24 days ago

I have committed r16873.

#2 Updated by Jean-Philippe Lang 23 days ago

Should we move the tests to the new models, controllers... folders?

#3 Updated by Toshi MARUYAMA 23 days ago

Jean-Philippe Lang wrote:

Should we move the tests to the new models, controllers... folders?

I don't know.
But Japanese document says

  • rake test:units -> run in test/models test/helpers, and test/unit
  • rake test:functionals -> run in test/controllers, test/mailers, and test/functional

#4 Updated by Toshi MARUYAMA 23 days ago

Toshi MARUYAMA wrote:

But Japanese document

I cannot find this part in English document .

Also available in: Atom PDF