search for: setup_with_fixtures

Displaying 11 results from an estimated 11 matches for "setup_with_fixtures".

2005 Nov 26
4
activerecord rake test_mysql
...eate_fixtures'' ./test/../lib/active_record/fixtures.rb:244:in `silence'' ./test/../lib/active_record/fixtures.rb:244:in `create_fixtures'' ./test/../lib/active_record/fixtures.rb:539:in `load_fixtures'' ./test/../lib/active_record/fixtures.rb:487:in `setup_with_fixtures'' ./test/../lib/active_record/fixtures.rb:521:in `setup'' ./test/../lib/active_record/fixtures.rb:520:in `setup'' 2) Error: test_adding_with_proc_callbacks(AssociationCallbacksTest): ActiveRecord::StatementInvalid: Mysql::Error: #HY000Field ''type''...
2006 Nov 24
7
Anyone know whats going on with PostgreSQL async_exec errors?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Anyone know what''s going on with ActiveRecord Edge and 1.2RC1 unit tests. I get 13 failures from the "async_exec" method call. ie: test_callback_rollback_in_save(ConcurrentTransactionTest): ActiveRecord::StatementInvalid: NoMethodError: undefined method `async_exec'' for #<PGconn:0xb75a8754>: SET
2007 Apr 03
1
functional test, fixtures should load by myself ?
rails version: 1.2.3 ruby version: 1.8.5 ---- functional test, fixtures should load by myself ? class FooControllerTest::Test::Unit::TestCase fixtures :foo, :bar def setup setup_with_fixtures # <--- must call this ? end end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.or...
2005 Dec 23
2
SQLite in-memory
I left ":memory:" in database.yml for testing and the most simple tests in the Agile book do not work (see trace below for test_truth). Since that''s what comes with the distributed database.yml I suppose it''s me doing something wrong. Did someone get SQLite ":memory:" working? How does it grab the schema? -- fxn % rake test_units (in
2007 Feb 13
16
Error against latest trunk while testing via spec for model
Hi I just did an update to lates trunk ================= context "Given a generated venue_spec.rb with fixtures loaded" do fixtures :venues specify "fixtures should load two Venues" do Venue.should have(2).records end end ================== gives me ========== 1) TypeError in ''Given a generated venue_spec.rb with fixtures loaded fixtures should load two
2006 Jun 24
5
Rake vs Ruby for running tests (error discrepency)
...iverecord-1.14.2/lib/active_record/fixtures.rb:248:in `create_fixtures'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:565:in `load_fixtures'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:512:in `setup_with_fixtures'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:547:in `setup'' However if I use "ruby test/unit/player_season_test.rb" I don''t get any errors. Same thing happens with funtional tests. Using rake to run the tests gi...
2006 Apr 13
1
Setting up Testing model, getting an error
...iverecord-1.14.2/lib/active_record/fixtures.rb:248:in `create_fixtures'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:565:in `load_fixtures'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:512:in `setup_with_fixtures'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:547:in `setup'' 2) Error: test_create(ProductTest): NoMethodError: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured...
2006 Apr 21
2
destory Test Case Messes up all tests
I am trying to create unit tests for my users model but when I add a test that destroys a user, that user is not available in any of the other test. If I remove the test that destroys the user all my other tests work again. All the fixtures are suppose be reloaded between tests right? Here is my testcase : require File.dirname(__FILE__) + ''/../test_helper'' class UserTest
2007 Jun 15
3
Error when running functional test - Errno::ENOENT
...s/1.8/gems/activerecord-1.15.3/lib/active_record/ fixtures.rb:248:in `create_fixtures'' /sw/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ fixtures.rb:593:in `load_fixtures'' /sw/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ fixtures.rb:538:in `setup_with_fixtures'' /sw/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ fixtures.rb:575:in `setup'' 1 tests, 0 assertions, 0 failures, 1 errors The file at /usr/src/projects/myproject/config/../test/fixtures/ campaings is a valid yml file (campaings.yml) that loads fine in unit t...
2006 Jul 24
3
Creating performance test fixtures from development db? How?
Hi all! I''m looking into the testing chapter of Agile Web Development With Rails (2nd ed.). I want to performance test my app, but I''m too lazy to write fixtures for performance test. I''d rather use the data from my development db (because the data is so close to the production data). How do I get the data into the test db without writing fixtures? Could you please
2005 Dec 30
1
Problems with Testing (Depot) demo app in Agile Rails book
...ms/activerecord-1.13.2/lib/active_record/fixtures.rb:244:in `create_fixtures'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/fixtures.rb:540:in `load_fixtures'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/fixtures.rb:487:in `setup_with_fixtures'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/fixtures.rb:522:in `setup'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/fixtures.rb:521:in `setup'' 2) Error: test_truth(OrderTest): NoMethodError: You have a nil obj...