I would like to add: if you have some custom mapping between the models,
you could write a simple rake task. Example:
http://myutil.com/2008/8/31/rake-task-transfer-rails-database-mysql-to-postgres
Regards,
Anton
--
You received this message because you are subscribed to the Google Groups "Rub
Hi,
I recently found these two helpers (assert_emails, assert_no_emails) inside
ActionMailer gem:
https://github.com/rails/rails/blob/master/actionmailer/lib/action_mailer/test_helper.rb
I wonder why they are not mentioned in the official documentation:
- http://guides.rubyonrails.org/testin
That's because users are actually different. To fix this you need to pass a
user record into the FactoryGirl's create method.
let(:user) {FactoryGirl.create(:user)}
let(:status) {FactoryGirl.create(:status, user: user)}
Regards,
Anton
понедельник, 12 ноября 2012 г., 14:03:19 UTC+4 пользователь
3 matches
Mail list logo