Displaying 8 results from an estimated 8 matches for "base_test".
2007 Feb 07
0
strange sqlite3 errors - validates_associated & failing activerecord unit tests
...del has already been checked for errors
in the previous assertion in the test, but assert sub_plan.valid?
fails...
This lead me to running the unit tests for active record. When I run
the tests through Rake ("rake test_sqlite"), they all pass. But when
running the individual test "base_test.rb", I obtain failures. Here
is the output:
euclid% rake -I "connections/native_sqlite3" base_test.rb
/opt/local/bin/rake:17:Warning: require_gem is obsolete. Use gem instead.
(in /Users/smtlaissezfaire/devel/rails/subscription_manager/vendor/rails/activerecord)
rake aborted!
Don&...
2007 Nov 13
4
question about activerecord test_numeric_fields in base_test.rb
There''s a test for activerecord called test_numeric_fields in
base_test.rb. here''s the test
def test_numeric_fields
m = NumericData.new(
:bank_balance => 1586.43,
:big_bank_balance => BigDecimal("1000234000567.95"),
:world_population => 6000000000,
:my_house_population => 3
)
assert m.save
m1 =...
2005 Dec 18
0
PostgreSQL unit test failure
PostgreSQL 8.1, Win32, Ruby 1.8.2 for Win32 native.
Rails 1.0 gems.
Starting on line 784 of the ''base_test.rb'' file for ActiveRecord
1.13.2 is "test_default"
When I run the unit tests for ActiveRecord against Postgres,
everything passes except for this test. It looks like modified_time
returns a default of ''nil'', rather than Time.now, as it should.
Is this a known i...
2006 Jan 02
0
problem with ruby gem activate when trying to run actionpack tests
...s (I''m currently working on patches for collection_select and
auto_link).
I''m following the instructions here:
http://dev.rubyonrails.org/
and have checked out actionpack. Trying to run the actionpack tests I
get this error:
D:\User\Code\ruby\actionpack\test>ruby controller/base_test.rb
d:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:144:in `activate'': can''t
activate act
ivesupport (= 1.2.3), already activated activesupport-1.2.4]
(Gem::Exception)
from d:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:162:in `activate''
from d:/ruby/lib/ruby/site_ruby/1.8/rubygems...
2005 Mar 07
6
Automatic timestamping in join tables [596]
Hi,
A few days ago I submitted the following ticket
http://dev.rubyonrails.com/ticket/596
asking that ActiveRecord::Timestamp also apply for the join tables of
habtm.
The answer was that it was left for milestone 1.x, and since I think
that without this functionality rails 1.0 would be incomplete, I''m
raising the issue here to discuss it.
My use case is very simple, I
2006 Dec 29
0
Rails AR/Oracle Unit Test: [5808] passed (fixed)
...onrails.org/changeset/5808
------------------------------------------------------------------------
r5808 | minam | 2006-12-29 11:05:53 -0800 (Fri, 29 Dec 2006) | 2 lines
try to appease the angry Oracle
------------------------------------------------------------------------
U activerecord/test/base_test.rb
U activerecord/lib/active_record/base.rb
Updated to revision 5808.
Unit tests successful, 130 seconds.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group,...
2007 Oct 07
0
Rails AR/Oracle Unit Test: [7769] failed (getting worse)
...----------------
U activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
U activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
U activerecord/CHANGELOG
Updated to revision 7769.
1) Failure:
test_preserving_date_objects(BasicsTest)
[./test/base_test.rb:387:in `test_preserving_date_objects''
/usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'']:
The last_read attribute should be of the Time class.
<Thu, 15 Apr 2004>
expected to be kind_of?
<Time> but was
<Date>....
2010 Jun 11
5
Issues creating tables in mysql tests
...ion_test.rb"
"test/cases/associations/inverse_associations_test.rb"
"test/cases/associations/join_model_test.rb"
"test/cases/associations_test.rb" "test/cases/attribute_methods_test.rb"
"test/cases/autosave_association_test.rb" "test/cases/base_test.rb"
"test/cases/batches_test.rb" "test/cases/binary_test.rb"
"test/cases/calculations_test.rb" "test/cases/callbacks_test.rb"
"test/cases/column_alias_test.rb" "test/cases/column_definition_test.rb"
"test/cases/connection_pool_te...