fixtures
disabling transactional fixtures in Rspec has no effect
Due to a legacy database I\'m using, I\'m stuck with MySQL using MyISAM, which means my tables don\'t support transactions. This is causing the tests to fail, since table data ge开发者_如何学JAVAnerat[详细]
2023-02-02 06:00 分类:问答No valid model identifier for Django fixture data?
I\'m sure there\'s a simple answer here but I can\'t see it. I\'m trying to load fixtures into my datab开发者_开发知识库ase but no matter what model identifier I use I keep getting the Deserialization[详细]
2023-02-01 12:50 分类:问答rails, tests, and fixtures - Error "underlying cause no such file to load"
I\'m trying to get the tests for my rails app to run, but it keeps giving me the following errors: Unable to load tp_approval_step, underlying cause no such file to load -- tp_approval_step[详细]
2023-01-30 13:36 分类:问答Using machinist instead of fixtures
In my Rails 3 application, I have a User model with the following fields name: string email: string children: has_many association to another model[详细]
2023-01-30 06:05 分类:问答inheriting models in rails
I have 2 similar models: liked_image_user loved_image_user I have put the common methods in a module Rating.rb, that I include in each class[详细]
2023-01-28 15:17 分类:问答Creating complex shapes with box2d
I am trying to create a body in box2d which looks like this: http://www.tobyjones.com/3d/3d_rec.jpg I was going to create a horizontal rectangle and add vertical rectangles to each e开发者_如何学Cnd[详细]
2023-01-28 06:04 分类:问答Creating fixture data for model using acts_as_taggable_on
I\'m using the acts_as_taggable_on plugin to provide tagging for my Framework model. I\'ve got the functional tests that Rails generates, as well as the fixtures it uses and I would like to expand the[详细]
2023-01-23 13:41 分类:问答Loading a fixture before a south migration run
I\'ve made a mistake of creating my own User model and am trying to recover. I\'ve created a south migration that copies my old user models and creates django.contrib.auth.models.User models. To ensu[详细]
2023-01-22 11:09 分类:问答Migrating Django fixtures?
I have a Django application.I have .json fixture files containing test data, with unit tests that use the data to confirm the applic开发者_开发技巧ation is working properly.I also use South to migrate[详细]
2023-01-20 21:14 分类:问答RSpec : want to have many tests for one shot method, including fixtures
I\'m working on a Rails app. I want to test with rspec my method \"start!\" of my model Backup. So here the specs (all are methods, too):[详细]
2023-01-20 20:30 分类:问答