rsim/oracle-enhanced — Issue #151: Rails 3.1.4.rc1: rake spec fails "comparison of String with :employee_id failed" 
Author: yahonda
Created: 2012-02-24 03:40:15+00:00
State: open

Since three rc1 have been released, I've tested them with oracle-enhanced(master).
Rails 3.2.2.rc1, 3.1.4.rc1, and 3.0.12.rc1

Rails 3.2.2.rc1, and 3.0.12.rc1, all unit tests successfully finished, 3.1.4.rc1 always got following errors.

```ruby
$ echo $RAILS_GEM_VERSION
3.1.4.rc1
[1.9.3@rails314rc1] yahonda@myoel6 ~/Dropbox/git/oracle-enhanced (master)
$ ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]
[1.9.3@rails314rc1] yahonda@myoel6 ~/Dropbox/git/oracle-enhanced (master)
$
```

```ruby
Failures:

1) OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should return Time value from DATE column if emulate_dates_by_column_name is false
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:103:in `create_test_employee'
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:121:in `block (3 levels) in '

2) OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should return Date value from DATE column if column name contains 'date' and emulate_dates_by_column_name is true
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:103:in `create_test_employee'
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:127:in `block (3 levels) in '

3) OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should return Date value from DATE column with old date value if column name contains 'date' and emulate_dates_by_column_name is true
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:103:in `create_test_employee'
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:133:in `block (3 levels) in '

4) OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should return Time value from DATE column if column name does not contain 'date' and emulate_dates_by_column_name is true
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:103:in `create_test_employee'
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:139:in `block (3 levels) in '

5) OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should return Date value from DATE column if emulate_dates_by_column_name is false but column is defined as date
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:103:in `create_test_employee'
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:148:in `block (3 levels) in '

6) OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should return Date value from DATE column with old date value if emulate_dates_by_column_name is false but column is defined as date
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:103:in `create_test_employee'
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:157:in `block (3 levels) in '

7) OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should return Time value from DATE column if emulate_dates_by_column_name is true but column is defined as datetime
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:103:in `create_test_employee'
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:176:in `block (3 levels) in '

8) OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should guess Date or Time value if emulate_dates is true
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:103:in `create_test_employee'
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:188:in `block (3 levels) in '

9) OracleEnhancedAdapter timestamp with timezone support / TIMESTAMP WITH TIME ZONE values from ActiveRecord model should return Time value from TIMESTAMP columns
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:587:in `block (3 levels) in '

10) OracleEnhancedAdapter timestamp with timezone support / TIMESTAMP WITH TIME ZONE values from ActiveRecord model should return Time value with fractional seconds from TIMESTAMP columns
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:601:in `block (3 levels) in '

11) OracleEnhancedAdapter date and timestamp with different NLS date formats should return Time value from DATE column if emulate_dates_by_column_name is false
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:674:in `create_test_employee'
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:686:in `block (2 levels) in '

12) OracleEnhancedAdapter date and timestamp with different NLS date formats should return Date value from DATE column if column name contains 'date' and emulate_dates_by_column_name is true
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:674:in `create_test_employee'
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:693:in `block (2 levels) in '

13) OracleEnhancedAdapter date and timestamp with different NLS date formats should return Time value from DATE column if column name does not contain 'date' and emulate_dates_by_column_name is true
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:674:in `create_test_employee'
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:700:in `block (2 levels) in '

14) OracleEnhancedAdapter date and timestamp with different NLS date formats should return Time value from TIMESTAMP columns
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:674:in `create_test_employee'
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:706:in `block (2 levels) in '

15) OracleEnhancedAdapter assign string to :date and :datetime columns should assign ISO string to date column
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:778:in `block (2 levels) in '

16) OracleEnhancedAdapter assign string to :date and :datetime columns should assign NLS string to date column
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:790:in `block (2 levels) in '

17) OracleEnhancedAdapter assign string to :date and :datetime columns should assign ISO time string to date column
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:801:in `block (2 levels) in '

18) OracleEnhancedAdapter assign string to :date and :datetime columns should assign NLS time string to date column
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:814:in `block (2 levels) in '

19) OracleEnhancedAdapter assign string to :date and :datetime columns should assign ISO time string to datetime column
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:825:in `block (2 levels) in '

20) OracleEnhancedAdapter assign string to :date and :datetime columns should assign NLS time string to datetime column
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:837:in `block (2 levels) in '

21) OracleEnhancedAdapter assign string to :date and :datetime columns should assign NLS time string with time zone to datetime column
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:849:in `block (2 levels) in '

22) OracleEnhancedAdapter assign string to :date and :datetime columns should assign ISO date string to datetime column
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:860:in `block (2 levels) in '

23) OracleEnhancedAdapter assign string to :date and :datetime columns should assign NLS date string to datetime column
Failure/Error: @employee = TestEmployee.create(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:873:in `block (2 levels) in '

24) OracleEnhancedAdapter handling of BLOB columns should create record with BLOB data
Failure/Error: @employee = TestEmployee.create!(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1078:in `block (2 levels) in '

25) OracleEnhancedAdapter handling of BLOB columns should update record with BLOB data
Failure/Error: @employee = TestEmployee.create!(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1088:in `block (2 levels) in '

26) OracleEnhancedAdapter handling of BLOB columns should update record with zero-length BLOB data
Failure/Error: @employee = TestEmployee.create!(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1101:in `block (2 levels) in '

27) OracleEnhancedAdapter handling of BLOB columns should update record that has existing BLOB data with different BLOB data
Failure/Error: @employee = TestEmployee.create!(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1114:in `block (2 levels) in '

28) OracleEnhancedAdapter handling of BLOB columns should update record that has existing BLOB data with nil
Failure/Error: @employee = TestEmployee.create!(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1127:in `block (2 levels) in '

29) OracleEnhancedAdapter handling of BLOB columns should update record that has existing BLOB data with zero-length BLOB data
Failure/Error: @employee = TestEmployee.create!(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1140:in `block (2 levels) in '

30) OracleEnhancedAdapter handling of BLOB columns should update record that has zero-length BLOB data with non-empty BLOB data
Failure/Error: @employee = TestEmployee.create!(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1153:in `block (2 levels) in '

31) OracleEnhancedAdapter handling of RAW columns should create record with RAW data
Failure/Error: @employee = TestEmployee.create!(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1208:in `block (2 levels) in '

32) OracleEnhancedAdapter handling of RAW columns should update record with RAW data
Failure/Error: @employee = TestEmployee.create!(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1218:in `block (2 levels) in '

33) OracleEnhancedAdapter handling of RAW columns should update record with zero-length RAW data
Failure/Error: @employee = TestEmployee.create!(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1231:in `block (2 levels) in '

34) OracleEnhancedAdapter handling of RAW columns should update record that has existing RAW data with different RAW data
Failure/Error: @employee = TestEmployee.create!(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1244:in `block (2 levels) in '

35) OracleEnhancedAdapter handling of RAW columns should update record that has existing RAW data with nil
Failure/Error: @employee = TestEmployee.create!(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1257:in `block (2 levels) in '

36) OracleEnhancedAdapter handling of RAW columns should update record that has existing RAW data with zero-length RAW data
Failure/Error: @employee = TestEmployee.create!(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1270:in `block (2 levels) in '

37) OracleEnhancedAdapter handling of RAW columns should update record that has zero-length BLOB data with non-empty RAW data
Failure/Error: @employee = TestEmployee.create!(
ArgumentError:
comparison of String with :employee_id failed
# ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1283:in `block (2 levels) in '

Finished in 117.05 seconds
339 examples, 37 failures, 1 pending

Failed examples:

rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:119 # OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should return Time value from DATE column if emulate_dates_by_column_name is false
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:125 # OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should return Date value from DATE column if column name contains 'date' and emulate_dates_by_column_name is true
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:131 # OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should return Date value from DATE column with old date value if column name contains 'date' and emulate_dates_by_column_name is true
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:137 # OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should return Time value from DATE column if column name does not contain 'date' and emulate_dates_by_column_name is true
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:143 # OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should return Date value from DATE column if emulate_dates_by_column_name is false but column is defined as date
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:152 # OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should return Date value from DATE column with old date value if emulate_dates_by_column_name is false but column is defined as date
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:171 # OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should return Time value from DATE column if emulate_dates_by_column_name is true but column is defined as datetime
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:186 # OracleEnhancedAdapter date type detection based on column names / DATE values from ActiveRecord model should guess Date or Time value if emulate_dates is true
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:585 # OracleEnhancedAdapter timestamp with timezone support / TIMESTAMP WITH TIME ZONE values from ActiveRecord model should return Time value from TIMESTAMP columns
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:599 # OracleEnhancedAdapter timestamp with timezone support / TIMESTAMP WITH TIME ZONE values from ActiveRecord model should return Time value with fractional seconds from TIMESTAMP columns
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:684 # OracleEnhancedAdapter date and timestamp with different NLS date formats should return Time value from DATE column if emulate_dates_by_column_name is false
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:691 # OracleEnhancedAdapter date and timestamp with different NLS date formats should return Date value from DATE column if column name contains 'date' and emulate_dates_by_column_name is true
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:698 # OracleEnhancedAdapter date and timestamp with different NLS date formats should return Time value from DATE column if column name does not contain 'date' and emulate_dates_by_column_name is true
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:705 # OracleEnhancedAdapter date and timestamp with different NLS date formats should return Time value from TIMESTAMP columns
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:777 # OracleEnhancedAdapter assign string to :date and :datetime columns should assign ISO string to date column
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:788 # OracleEnhancedAdapter assign string to :date and :datetime columns should assign NLS string to date column
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:800 # OracleEnhancedAdapter assign string to :date and :datetime columns should assign ISO time string to date column
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:811 # OracleEnhancedAdapter assign string to :date and :datetime columns should assign NLS time string to date column
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:824 # OracleEnhancedAdapter assign string to :date and :datetime columns should assign ISO time string to datetime column
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:835 # OracleEnhancedAdapter assign string to :date and :datetime columns should assign NLS time string to datetime column
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:847 # OracleEnhancedAdapter assign string to :date and :datetime columns should assign NLS time string with time zone to datetime column
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:859 # OracleEnhancedAdapter assign string to :date and :datetime columns should assign ISO date string to datetime column
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:870 # OracleEnhancedAdapter assign string to :date and :datetime columns should assign NLS date string to datetime column
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1077 # OracleEnhancedAdapter handling of BLOB columns should create record with BLOB data
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1087 # OracleEnhancedAdapter handling of BLOB columns should update record with BLOB data
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1100 # OracleEnhancedAdapter handling of BLOB columns should update record with zero-length BLOB data
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1113 # OracleEnhancedAdapter handling of BLOB columns should update record that has existing BLOB data with different BLOB data
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1126 # OracleEnhancedAdapter handling of BLOB columns should update record that has existing BLOB data with nil
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1139 # OracleEnhancedAdapter handling of BLOB columns should update record that has existing BLOB data with zero-length BLOB data
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1152 # OracleEnhancedAdapter handling of BLOB columns should update record that has zero-length BLOB data with non-empty BLOB data
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1207 # OracleEnhancedAdapter handling of RAW columns should create record with RAW data
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1217 # OracleEnhancedAdapter handling of RAW columns should update record with RAW data
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1230 # OracleEnhancedAdapter handling of RAW columns should update record with zero-length RAW data
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1243 # OracleEnhancedAdapter handling of RAW columns should update record that has existing RAW data with different RAW data
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1256 # OracleEnhancedAdapter handling of RAW columns should update record that has existing RAW data with nil
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1269 # OracleEnhancedAdapter handling of RAW columns should update record that has existing RAW data with zero-length RAW data
rspec ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb:1282 # OracleEnhancedAdapter handling of RAW columns should update record that has zero-length BLOB data with non-empty RAW data
rake aborted!
/home/yahonda/.rvm/rubies/ruby-1.9.3-p125/bin/ruby -S rspec ./spec/active_record/connection_adapters/oracle_enhanced_schema_statements_spec.rb ./spec/active_record/connection_adapters/oracle_enhanced_connection_spec.rb ./spec/active_record/connection_adapters/oracle_enhanced_schema_dump_spec.rb ./spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb ./spec/active_record/connection_adapters/oracle_enhanced_context_index_spec.rb ./spec/active_record/connection_adapters/oracle_enhanced_dbms_output_spec.rb ./spec/active_record/connection_adapters/oracle_enhanced_procedures_spec.rb ./spec/active_record/connection_adapters/oracle_enhanced_structure_dump_spec.rb ./spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb ./spec/active_record/connection_adapters/oracle_enhanced_dirty_spec.rb ./spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb ./spec/active_record/connection_adapters/oracle_enhanced_core_ext_spec.rb ./spec/active_record/connection_adapters/oracle_enhanced_cpk_spec.rb failed

Tasks: TOP => spec
(See full trace by running task with --trace)
[1.9.3@rails314rc1]
```