[Rails] Re: how to copy data from mysql to postgres?

2013-01-15 Thread akalyaev
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

[Rails] ActionMailer test helpers

2012-11-14 Thread akalyaev
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

[Rails] Re: Factory girl associations and rspec

2012-11-13 Thread akalyaev
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 пользователь