Posted over 9 years ago by Julien Letessier.

I often see long before blocks with lots of should_receive...

...and_return inside. Remember that before blocks are about...

Posted about 9 years ago by Julien Letessier.

Wether you modify an existing named scope or add a new one, or when you write a new query, make...

Posted about 8 years ago by Pedro Cunha.

File uploads with .png are +10 times slower than using .jpeg or .gif. # Bad post :create, { :property_id => property.id,

Posted over 8 years ago by Marcus Mitchell.

TL;DR: If using :group => :some_field you might want to :order => 'NULL'. According to the man By default, MySQL...

Posted almost 9 years ago by Dragos Miron.

The object returned by has_defaults apparently is the same between multiple object creations. Consider this scenario:

Posted almost 9 years ago by Nasir Jamal.

wkhtmltopdf hangs on mac during cucumber unless we click on it. The main reason is with the version we use...

Posted almost 9 years ago by Nasir Jamal.

Add to the end your .bash_profile export PATH="./vendor/bundle/bin:$PATH" Also add alias bi="bundle install --path vendor/bundle --binstubs...

Posted about 9 years ago by Nasir Jamal.

When simply checking equality or truthiness then Instead of: it "should have role set to admin" do @user.role.should eql('admin...

Posted about 9 years ago by Nasir Jamal.

One of the main source of bugs and complexity in the code is when a functional method (that we expect...

Posted about 9 years ago by fragalla. github.com

Go to lib folder and use bundler to generate main files for a gem: $ bundle gem test_gem create test...

This website uses short-lived cookies to improve usability.
Accept or learn more