search for: create_fixture

Displaying 20 results from an estimated 49 matches for "create_fixture".

Did you mean: create_fixtures
2005 Nov 26
4
activerecord rake test_mysql
...81:in `execute'' ./test/../lib/active_record/fixtures.rb:284:in `insert_fixtures'' ./test/../lib/active_record/fixtures.rb:283:in `each'' ./test/../lib/active_record/fixtures.rb:283:in `insert_fixtures'' ./test/../lib/active_record/fixtures.rb:253:in `create_fixtures'' ./test/../lib/active_record/fixtures.rb:253:in `each'' ./test/../lib/active_record/fixtures.rb:253:in `create_fixtures'' ./test/../lib/active_record/fixtures.rb:251:in `transaction'' ./test/../lib/active_record/fixtures.rb:251:in `create_fixtures...
2008 Jan 16
0
[CruiseControl] RubyOnRails build 8649 failed
...insert_fixture'' ./test/../lib/active_record/fixtures.rb:634:in `insert_fixtures'' ./test/../lib/active_record/fixtures.rb:571:in `each'' ./test/../lib/active_record/fixtures.rb:571:in `insert_fixtures'' ./test/../lib/active_record/fixtures.rb:519:in `create_fixtures'' ./test/../lib/active_record/fixtures.rb:519:in `each'' ./test/../lib/active_record/fixtures.rb:519:in `create_fixtures'' ./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'' ./test/../lib/active_recor...
2011 Jul 25
4
Rails 3 test database issues
.../lib/ active_record/fix tures.rb:582:in `each'' C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/ active_record/fix tures.rb:582:in `insert_fixtures'' C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/ active_record/fix tures.rb:526:in `block (4 levels) in create_fixtures'' C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/ active_record/fix tures.rb:526:in `each'' C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/ active_record/fix tures.rb:526:in `block (3 levels) in create_fixtures'' C:/Ruby192/lib/ruby/gems/...
2007 Apr 02
0
Fixtures.create_fixtures with any desired filenames?
Hi all I''d like to create fixtures using Fixtures.create_fixtures But it seems that this one needs .yml files that have the same name like the table they correspond to: countries.yml => my_db.countries readers.yml => my_db.readers Is it possible to use any desired filenames somehow? some_cool_countries.yml => my_db.countries some_other_cool_countrie...
2007 Sep 21
1
Do fixture_scenarios and RSpec peacibly coexist?
...ror in ''Context (verbose situation...)'' can''t convert nil into String ..lib/fixture_scenarios.rb:108:in `open'' ..lib/fixture_scenarios.rb:108:in `read_fixture_files'' ..lib/fixture_scenarios.rb:66:in `initialize'' ..lib/fixture_scenarios.rb:29:in `create_fixtures'' ..lib/fixture_scenarios.rb:28:in `create_fixtures'' ..lib/fixture_scenarios.rb:26:in `create_fixtures'' ..lib/fixture_scenarios.rb:257:in `load_fixtures'' plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/model.rb:12:in `before_eval'' The project is he...
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
2006 Jan 24
0
Fixtures subdirectories
...Test::Unit::TestCase.fixture_path = RAILS_ROOT + "/test/fixtures/catalog" fixtures :products, :parts However, it looks like the test_help.rb file (in <rails>/lib) which is written as: Test::Unit::TestCase.fixture_path = RAILS_ROOT + "/test/fixtures/ " def create_fixtures(*table_names) Fixtures.create_fixtures(RAILS_ROOT + "/test/fixtures", table_names) end could be rewritten as : Test::Unit::TestCase.fixture_path = RAILS_ROOT + "/test/fixtures/ " def create_fixtures(*table_names) Fixtures.create_fixtures(Test::Unit::TestCase....
2006 Jun 24
5
Rake vs Ruby for running tests (error discrepency)
...erecord-1.14.2/lib/active_record/fixtures.rb:288:in `insert_fixtures'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:287:in `insert_fixtures'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:257:in `create_fixtures'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:257:in `create_fixtures'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in `transaction'' /us...
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
2005 Mar 09
9
Unit testing + instance variables
...test_helper'' require ''recipe_controller'' class RecipeControllerTest < Test::Unit::TestCase def setup @controller = RecipeController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new create_fixtures "recipes" create_fixtures "categories" end def test_list get :list # This step seems exessively complex, and took me a while to figure out my_inst_vars = @controller.instance_variable_get "@assigns" assert_equal( 5, m...
2009 Feb 02
2
looking for help with NoMethodError: undefined method `key?' for #<String:0x4795488>
...d-2.2.2/lib/ active_record/fixtures.rb:577:in `each'' C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/ active_record/fixtures.rb:577:in `insert_fixtures'' C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/ active_record/fixtures.rb:520:in `create_fixtures'' C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/ active_record/fixtures.rb:520:in `each'' C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/ active_record/fixtures.rb:520:in `create_fixtures'' C:/InstantRails/ruby/lib/ruby/g...
2007 Sep 27
0
fixture_scenarios in trunk
..... 148) NoMethodError in ''Cart should show a sub_total_amount'' You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occurred while evaluating nil.each ../vendor/plugins/fixture_scenarios/lib/fixture_scenarios.rb:37:in `create_fixtures'' ../vendor/plugins/fixture_scenarios/lib/fixture_scenarios.rb:33:in `create_fixtures'' ../vendor/plugins/fixture_scenarios/lib/fixture_scenarios.rb:26:in `create_fixtures'' ../vendor/plugins/fixture_scenarios/lib/fixture_scenarios.rb:257:in `load_fixtures'' ....
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
2006 Jan 06
4
Design flaw with Fixtures?
...iserably. Because of the complexity of the relationships, I''m using a database which validates foreign key constraints (PostgreSQL 8). I''m finding it nearly impossible to generate tests that are independent of each other. The basic problem is the DELETE then INSERT nature of #create_fixtures. What happens is that one test inserts a bunch of data into the database and then exits. The next test comes along and tries to perform the deletes and an exception is raised because one of the fixtures from the previous test causes a constraint violation. Of course, there are ways to avoid t...
2006 Apr 13
1
Setting up Testing model, getting an error
...iverecord-1.14.2/lib/active_record/fixtures.rb:327:in `read_fixture_files'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:279:in `initialize'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:251:in `create_fixtures'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:250:in `create_fixtures'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:794:in `silence'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.1...
2006 Nov 07
4
Unknown column 'id' in 'field list
...ms/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:287:in `each'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:287:in `insert_fixtures'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:257:in `create_fixtures'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:257:in `each'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:257:in `create_fixtures'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/...
2006 Jul 18
1
Fixtures Max Size? SystemStackError: stack level too deep
...by/gems/1.8/gems/activerecord-1.14.0/lib/active_record/fixtures.rb:311:in `read_fixture_files'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/fixtures.rb:279:in `initialize'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/fixtures.rb:251:in `create_fixtures'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/fixtures.rb:250:in `create_fixtures'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:794:in `silence'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/fixtures...
2005 Dec 12
2
Using a lib in YAML fixtures
...usr/lib/ruby/gems/1.8/gems/activerecord-1.13.1/lib/active_record/fixtures.rb:275:in `initialize'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.1/lib/active_record/fixtures.rb:247:in `new'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.1/lib/active_record/fixtures.rb:247:in `create_fixtures'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.1/lib/active_record/fixtures.rb:246:in `map'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.1/lib/active_record/fixtures.rb:246:in `create_fixtures'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.1/lib/active_recor...
2005 Dec 30
1
Problems with Testing (Depot) demo app in Agile Rails book
...active_record/connection_adapters/mysql_adapter.rb:195:in `delete'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/fixtures.rb:279:in `delete_existing_fixtures'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/fixtures.rb:252:in `create_fixtures'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/fixtures.rb:252:in `each'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/fixtures.rb:252:in `create_fixtures'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/...
2007 Jun 15
3
Error when running functional test - Errno::ENOENT
...sw/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ fixtures.rb:281:in `initialize'' /sw/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ fixtures.rb:251:in `new'' /sw/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ fixtures.rb:251:in `create_fixtures'' /sw/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ fixtures.rb:250:in `map'' /sw/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ fixtures.rb:250:in `create_fixtures'' /sw/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record...