If you use rails_admin, your specs pass with the rspec binary, but not using rake spec (or rake parallel...
If you need to debug Analytics tracking, consider using this chrome extension. It will replace the tracking code with a...
Chances are, something in your project uses the mathn library, which is known to cause infinite loops when rendering the...
To check your apache2 config files for syntax errors run sudo apache2ctl configtest or shorter sudo apache2ctl -t
When a Ruby version gem has a letter in its version number, it is considered a pre-release:
You can publish pre-release versions of an npm package. Naming convention for pre-release versions An npm package must...
Simply add --dry-run, like this: sudo apt-get install --dry-run something This is great if packages would get...
You can now define this step without Cucumber raising Cucumber::Ambiguous: Then /^I should see "whatever I want"$/ do ...
This didn't work for me. Seems display is already taken in Machinist. # in spec/support/blueprints.rb Partner.blueprint do company_name
Background allows you to add some context to the scenarios in a single feature. A Background is much like a...
We had the issue, that a VCR spec failed, after updating CarrierWave from version 0.11.0 to 1.3.2. In this version...
This is a bug in Timecop 0.3.4 or lower. You should upgrade to 0.3.5.
Feature Queries (Edge 12+): Similar to @media queries, @supports blocks can be scoped to browsers that support a given declaration...
If you need to follow links, click buttons, etc. using Capybara inside an , you can do it like this:
The attached RSpec matcher allows for comfortably testing delegation. Examples describe Post do it { should delegate(:name).to(:author).with_prefix } # post.author_name it { should delegate(:month).to(:created_at...
...to :log or :raise to enable. The default value is :log in development and test environments, and false in all other environments. Rails 3: If you include the strong_params...
PostgreSQL's array data type is pretty useful, but manipulating values of arrays can be awkward because of its syntax...
Just add the parameter :post to the visit method: visit publish_entry_path, :post
Don't you just hate to write Cucumber path helpers to be able to say this?
Consul 0.4.0 comes with some new features. Dependencies Consul no longer requires assignable_values, it's optional for when you...
The following example is from the Cucumber wiki: Given a blog post named "Random" with Markdown body """ Some Title, Eh...
Be careful when stubbing out attributes on records that are defined by associations. Nothing is as it seems to be...
In theory you can take any scope and extend it with additional joins or conditions. We call this chaining scopes...