rsim/oracle-enhanced — Issue #142: rake test functionals uses a plural table name
Author: estamey
Created: 2012-01-13 17:02:00+00:00
State: open

I have a small application, and I'm able to interact with my data in the one table, 'illustration', but when I rake test, it is pluralizing the table name to 'illustrations'

I have set this in application.rb:

#use singular table names
config.active_record.pluralize_table_names = false

Here is what I'm seeing:

$ rake test
Loaded suite /Users/estamey/.rvm/gems/ruby-1.9.2-p290@ekg/gems/rake-0.9.2.2/lib/rake/rake_test_loader
Started

Finished in 0.004380 seconds.

0 tests, 0 assertions, 0 failures, 0 errors, 0 skips
Loaded suite /Users/estamey/.rvm/gems/ruby-1.9.2-p290@ekg/gems/rake-0.9.2.2/lib/rake/rake_test_loader
Started

IllustrationsControllerTest:
ERROR should create illustration (0.01s)
ActiveRecord::StatementInvalid: OCIError: ORA-00942: table or view does not exist: DELETE FROM "ILLUSTRATIONS"
stmt.c:235:in oci8lib_191.bundle

ERROR should destroy illustration (0.02s)
ActiveRecord::StatementInvalid: OCIError: ORA-00942: table or view does not exist: DELETE FROM "ILLUSTRATIONS"
stmt.c:235:in oci8lib_191.bundle

ERROR should get edit (0.01s)
ActiveRecord::StatementInvalid: OCIError: ORA-00942: table or view does not exist: DELETE FROM "ILLUSTRATIONS"
stmt.c:235:in oci8lib_191.bundle

ERROR should get index (0.01s)
ActiveRecord::StatementInvalid: OCIError: ORA-00942: table or view does not exist: DELETE FROM "ILLUSTRATIONS"
stmt.c:235:in oci8lib_191.bundle

ERROR should get new (0.01s)
ActiveRecord::StatementInvalid: OCIError: ORA-00942: table or view does not exist: DELETE FROM "ILLUSTRATIONS"
stmt.c:235:in oci8lib_191.bundle

ERROR should show illustration (0.02s)
ActiveRecord::StatementInvalid: OCIError: ORA-00942: table or view does not exist: DELETE FROM "ILLUSTRATIONS"
stmt.c:235:in oci8lib_191.bundle

ERROR should update illustration (0.01s)
ActiveRecord::StatementInvalid: OCIError: ORA-00942: table or view does not exist: DELETE FROM "ILLUSTRATIONS"
stmt.c:235:in oci8lib_191.bundle

Finished in 0.108853 seconds.

7 tests, 0 assertions, 0 failures, 7 errors, 0 skips
Errors running test:functionals!