Posts by Pedro Vitti • 58 points
3 posts
-
1
votes1
answer290
viewsA: MYSQL to POSTGRESQL via SED
You can use the mysqldump with the option --compatible. mysqldump --compatible=postgresql dbname > export.sql Then you need to escape the quotes from the file generated with the command sed. Use…
-
1
votes2
answers56
viewsA: Matcher be_true ruby/rspec
According to this thread, the matchers be_true and be_false were replaced by be_truthy and be_falsey. You can still use the be true and be false (note that they are separate). The difference between…
-
2
votes1
answer121
viewsA: How do I get Exception Mongoid::Errors::Documentnotfound released on Mongoid
The problem is that your code is running (and throwing an exception) and passed as parameter to the method expect, without giving Rspec the chance to perform any kind of verification. You need to…