When you run rake db:create and get this error message Couldn't create database for {"encoding"=>"utf8", "username"=>"root...
whatsmydns.net is an online service that allows you to instantly perform a DNS lookup to check a hostnames current IP...
Consider you have a website vhost listening to www.example.com, redirecting all incoming requests that do not talk about the configured...
Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version...
Observed on Rails 2.3 and machinist 1.0.6 Like the title says, when you define the method empty? like in the...
Ever wondered how Rails talks to itself in a Cucumber feature? In Rails 3 you can do it like this...
After updating Rubygems you see a wall of deprecation warnings like this: NOTE: Gem::SourceIndex#add_spec is deprecated, use...
Sometimes the Rails helper #distance_of_time_in_words is using too much magic. When you need a time difference...
We have a big flat screen TV (Samsung LE46c650l1kxxu) in our conference room. Configuring it properly, we were encountering some...
Hint: There's another card with this helper for Cucumber features. Sometimes you feel like you need to stub some...
The Capybara API is somewhat hard for parse for a list of methods you can call on a Capybara node...
Cross-Origin Resource Sharing (CORS) is a browser technology specification, which defines ways for a web service to provide interfaces...
If you're writing a spec for an application using Resque, you may need to work off queues manually without...
Note: While the solution in this card should still work, we prefer another solution now: Hide your Selenium browser window...
Ubuntu comes with keyboard layouts like "Germany Eliminate Dead Keys", which are practical for programming. If you need to type...
This finally works: User.any_instance.should_receive(...) as does User.any_instance.stub(...) Note: You won't have RSpec 2.6 if you're still working...
VirtualBox does not offer anything for this task -- you need to do it yourself. It's not that hard:
When you generate a URL in a mailer view, ActionMailer will raise an error unless you previously configured it which...
I've recently encountered a weird problem with specs making lots of SOLR queries using the acts_as_solr plugin...
If you stub a method or set expectations with should_receive these stubbed methods may also yield blocks. This is...
When some of your Google contacts are no longer synchronized with your e-mail client or mobile phone, those contacts...
Sometimes, when running a rake task, RubyGems 1.8.5 raises an error: rake aborted! undefined method `specifications' for "/usr/lib/ruby/gems/1.8":String
Consider the following: describe '#something' do context 'with lots of required arguments' do it 'should work' do subject.something(:foo => 'foo...
Yesterday, there was a blog post entitled “What the Hell is Happening to Rails” that stayed at the number one...