Tag Archives: testing

Manage Fixtures with Yaml DB Plugin for Rails

Get the plugin like so… script/plugin install git://github.com/adamwiggins/yaml_db.git This command will dump your data rake db:data:dump And load it back rake db:data:load Beautiful More info here http://blog.heroku.com/archives/2007/11/23/yamldb_for_databaseindependent_data_dumps/ and http://stackoverflow.com/questions/490507/best-way-to-export-a-database-table-to-a-yaml-file
Posted in Ruby on Rails | Also tagged , , | 2 Comments

paypal ipn simulator

If you use the Paypal sandbox you’ll notice that there is an IPN Simulator test tool. You must be logged to use it. This tool lets you test an IPN handler script for your application. If your script is not correct and you try to send a test IPN transaction the simulator will spit out [...]
Posted in Business | Also tagged , | 4 Comments

rails fixtures: using the right timestamp

Fixtures in Rails allow you to quickly and easily populate a database with sample data. They are great when testing your app and you need to test against a condition that will rely on a certain preexisting data point. Fixtures are located in your RAILS_ROOT/test/fixtures/model.yml where model.yml is the model in question. A sample fixture *note: yml [...]
Posted in Programming, Ruby on Rails | Also tagged | Leave a comment