search for: test_case_adapter

Displaying 10 results from an estimated 10 matches for "test_case_adapter".

2007 Oct 07
0
Rails AR/Oracle Unit Test: [7769] failed (getting worse)
...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>. 2) Error: test_saves_both_date_and_time(DateTimeTest): RangeError: out of range of Time (expect between 1970-01-01 00:00:00 UTC and 2...
2007 May 31
0
Rails AR/SQLServer Unit Test: [6912] failed (but getting better)
..../test/../lib/active_record/transactions.rb:117:in `rollback_active_record_state!'' ./test/../lib/active_record/transactions.rb:109:in `save!'' ./test/date_time_test.rb:11:in `test_saves_both_date_and_time'' c:/ruby/lib/ruby/gems/1.8/gems/mocha-0.4.0/lib/mocha/test_case_adapter.rb:19:in `__send__'' c:/ruby/lib/ruby/gems/1.8/gems/mocha-0.4.0/lib/mocha/test_case_adapter.rb:19:in `run'' 2) Error: test_limited_eager_with_multiple_order_columns(EagerAssociationTest): ActiveRecord::StatementInvalid: DBI::DatabaseError: Execute OLE error code:80040E14...
2006 Oct 12
1
did something in revision 68 break stubs?
...e0> /home/greg/projects/mercury/config/../vendor/rails/activerecord/lib/active_record/base.rb:1845:in `method_missing'' test/unit/upcoming_message_test.rb:116:in `test_find_venue_id_returns_nil'' /home/greg/projects/mercury/config/../vendor/plugins/mocha/lib/mocha/test_case_adapter.rb:19:in `run'' The problem seems to be occuring in lib/mocha/test_case_adapter.rb which was updated by revision 68. Wondering if anyone else is seeing this problem and if not where I should start to look in my code for the incompatibility. I''ve looked and looked to see if so...
2007 Dec 05
0
[CruiseControl] RubyOnRails build 8285 failed
...h_two_tables_in_from_without_getting_double_quoted(EagerAssociationTest) Type: Failure Message: <2> expected but was <0>. ./test/associations/eager_test.rb:48:in `test_with_two_tables_in_from_without_getting_double_quoted'' /usr/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__'' /usr/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run'' See http://cruisecontrolrb.thoughtworks.com/builds/RubyOnRails/8285 for details. --~--~---------~--~----~------------~-------~--~----~ You received this message because...
2008 Feb 05
1
Functional Test has error when testing controller updates_attribute of its parrent.
I am working in Rails 2.0 and I have the following functional test. class VotesControllerTest < ActionController::TestCase def test_should_create_vote assert_difference(''Vote.count'') do post :create, {:vote => {:vote_value => 5, :user_id => users(:nick).id, :entry_id =>
2008 Jan 02
0
Re: RubyOnRails build 8525 failed
...value=\"30\">30</option>\n<option value=\"31\">31</option>\n</select>\n">. > > ./test/template/date_helper_test.rb:1409:in `test_include_blank_overrides_default_option'' > /usr/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__'' > /usr/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run'' > > Seehttp://cruisecontrolrb.thoughtworks.com/builds/RubyOnRails/8525for details. --~--~---------~--~----~------------~-------~--~----~ You received this message...
2007 Mar 30
7
problem with using any_instance
Hey all, I have a question with using mocha in my tests. In the same test file, I have two tests, <code> def test_a klass.any_instance.stubs(:method_name).returns("something") klass.new.method_name ... end def test_b ... klass.new.method_name ... end </code> where klass is some class when the tests run, test _a passes, but test_b had an error like this:
2007 Oct 25
15
State of Development
Hi all, I''m sure you''re all wondering what the heck is going on with development and why there are so many open tickets. Hopefully this email will answer those questions for you. REST Development ====================== First, I''ve found the REST work to be significantly more complicated than I''d feared. The plumbing is nearly all done and the majority
2007 Mar 23
2
Mocha 0.4.0 Hates My App
...this: 18) Error: test_created_at(EntityTest): NoMethodError: You have a nil object when you didn''t expect it! The error occured while evaluating nil.created_at ./test/unit/entity_test.rb:199:in `test_created_at'' /opt/local/lib/ruby/gems/1.8/gems/mocha-0.4.0/lib/mocha/ test_case_adapter.rb:19:in `run'' Interestingly, this method runs fine when run alone, but not in the test:units suite or when the entire EntityTest is run. It relies on a @entity from the setup method, which seems to be executing. My app is fairly large, with a number of Gem and plugin dependencies....
2007 Feb 06
2
Testing RJS actions
...mplate' /home/francois/src/config/../vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb:109:in `assert_template' ./test/functional/articles_controller_test.rb:84:in `test_destroy_xhr' /home/francois/src/config/../vendor/plugins/mocha/lib/mocha/test_case_adapter.rb:19:in `run']: expecting <"destroy.rjs"> but rendering with <nil> Generally, how do we specify the type of request we are sending to the action ? Thanks ! -- François Beausoleil http://blog.teksol.info/ http://piston.rubyforge.org/ --~--~---------~--~----~-----------...