Displaying 6 results from an estimated 6 matches for "finder_test".
2006 Oct 05
0
Where to add ActiveRecord::Base#find! tests
Just looking at adding the ActiveRecord::Base#find! method that was
spoken about a while ago now, and just wondering what''s the best way
to add these tests in?
My problem is that for 75% of the tests in finder_test.rb [1] I also
want to ensure that find! or find_by_name! or find_by_sql! works
alongside the regular finds.
I can duplicate the tests:
def test_find
assert_equal(topics(:first).title, Topic.find(1).title)
end
def test_find_with_bang
assert_equal(topics(:first).title, Topic...
2007 Oct 07
0
Rails AR/Oracle Unit Test: [7769] failed (getting worse)
..._all''
./test/../lib/active_record/base.rb:439:in `find_by_sql''
./test/../lib/active_record/base.rb:1004:in `find_every''
./test/../lib/active_record/base.rb:998:in `find_initial''
./test/../lib/active_record/base.rb:429:in `find''
./test/finder_test.rb:555:in `test_joins_dont_clobber_id''
/usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run''
5) Error:
test_select_rows(FinderTest):
NotImplementedError: select_rows is an abstract method
./test/../lib/active_record/connection_ad...
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
2007 May 31
0
Rails AR/SQLServer Unit Test: [6912] failed (but getting better)
...------------------------------------------------
r6912 | bitsweat | 2007-05-31 10:15:56 -0700 (Thu, 31 May 2007) | 1 line
Fix an edge case with find with a list of ids, limit, and offset. Closes #8437.
------------------------------------------------------------------------
U activerecord\test\finder_test.rb
U activerecord\lib\active_record\base.rb
Updated to revision 6912.
1) Error:
test_saves_both_date_and_time(DateTimeTest):
ArgumentError: argument out of range
./test/../lib/active_record/connection_adapters/sqlserver_adapter.rb:106:in `mktime''
./test/../lib/active_record/c...
2010 Jun 11
5
Issues creating tables in mysql tests
..."test/cases/connection_pool_test.rb" "test/cases/connection_test_mysql.rb"
"test/cases/counter_cache_test.rb" "test/cases/database_statements_test.rb"
"test/cases/date_time_test.rb" "test/cases/defaults_test.rb"
"test/cases/deprecated_finder_test.rb" "test/cases/dirty_test.rb"
"test/cases/finder_respond_to_test.rb" "test/cases/finder_test.rb"
"test/cases/fixtures_test.rb" "test/cases/i18n_test.rb"
"test/cases/inheritance_test.rb" "test/cases/invalid_date_test.rb"
&qu...
2008 Jan 19
0
[CruiseControl] RubyOnRails build 8671 failed
The build failed.
CHANGES
-------
Revision 8671 committed by bitsweat on 2008-01-19 03:45:24
Support aggregations in finder conditions. Closes #10572.
M /trunk/activerecord/test/cases/finder_test.rb
M /trunk/activerecord/CHANGELOG
M /trunk/activerecord/lib/active_record/aggregations.rb
M /trunk/activerecord/lib/active_record/base.rb
TEST FAILURES AND ERRORS
-----------------------
Name: test_custom_template(ActionMailerTest)
Type: Failure
Message: Exception raised:
Class: <Actio...