Let's say you need to revert a migration that happened a while back. You'd create a new migration...
When updating WebMock, be prepared that your specs may send real requests into the depths of the internet unless you...
If your project manager wants to do gatekeeping on a project, as a developer you need to follow the following...
If you're responsible for gatekeeping in a projects, here is a guide, what to do. In order to reduce...
TeamViewer 6 and lower had an issue where they would see a multi-monitor Linux setup as a single wall...
When your model is using a callback like before_save or before_validation to calculate an aggregated value from its...
We experienced problems with Sunspot and Solr on Tomcat: Umlauts (ä, ö, ü) were not correctly handled on Tomcat while...
The handy method has_select?(field, :selected => text) does not behave as expected with Cucumber 0.10.2, Capybara 0.4.1.2 and Selenium...
Imagine you have 2 HTML boxes. The first one has a margin-bottom of let's say 30px and the...
Delegating methods to other objects is often helpful but the syntax of both def_delegators and def_delegator is a...
You probably know about the possibility to tag scenarios in Cucumber to run your own piece of code before the...
In MySQL comparing zero to a string 0 = "any string" is always true! So when you want to compare a...
When your gems complain about invalid gemspecs and illformed requirements, it is most probably an error resulting from the transition...
REST Client is a nice, simple HTTP client library for Ruby. When you do a simple GET request like that...
Don't you just hate to write Cucumber path helpers to be able to say this?
In order to save the original value of a constant, set the new value and restore the old value after...
Copy the attached file to config/initializers/indent_string.rb and you can say "foo".indent(4) # " foo" Note you will find many simpler...
When deploying code with Capistrano (depending on your configuration) at some point Capistrano tries to check out code from your...
Imagine you have a piece of code that tries to send a request to a remote server. Now the server...
Tooltips that are delivered through HTML attributes are encoded. Decode entities before checking for their presence. Capybara: Then /^there should...
You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.
When using Rails to truncate strings, you may end up with strings that are still too long for their container...
Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more...
The step definition below lets you say: Then I should see a field "Password" But I should not see a...