1

In a fresh R3 app, I seem to be unable to run any tests (there are 2, the canonical functional test for "/" and another unit test I created)

See this output:

rails_app$ rake test --trace
(in /Users/jan/portfolio/rails_app)
** Invoke test (first_time, not_needed)
rails_app$

What could be wrong? What is the meaning of first_time, not_needed'? t might have to do with the fact, that I am using Mongoid...

Jan
  • 6,532
  • 9
  • 37
  • 48

1 Answers1

2

When I followed the instructions for Mongoid's installation, I replaced

require 'rails/all'

with

require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"

after learning about (and inserting)

require "rails/test_unit/railtie"

tests started to get picked up

Jan
  • 6,532
  • 9
  • 37
  • 48
  • 1
    Cannot remember, I am sorry. These days I am using FactoryGirl for these and they just work. – Jan Nov 01 '13 at 00:16