You might not know that Rails disables CSRF protection in tests. This means that if you accidentally forget to send...
Copy the attached file to features/support. This gets you a convenience method: Capybara.javascript_test? Is true for Selenium, capybara-webkit...
Using text-transform: uppercase - especially on form labels - can cause you serious headaches in Selenium tests. Sometimes the web driver...
Angular comes with different types of services. Each one with its own use cases. All of these services are singletons...
The asset pipeline (which is actually backed by sprockets) has a nice feature where templates ending in .jst are compiled...
Preface: Normally, you would not need this in integrations tests (probably that's why it is so hard to achieve...
Consul 0.10.0 now allows multiple power mappings for nested resources. When using nested resources you probably want two power
Custom matchers are a useful RSpec feature which you can use to DRY up repetitive expectations in your specs. Unfortunately...
Shared example groups are a useful RSpec feature. Unfortunately the default directory structure generated by rspec-rails has no obvious...
Simply give the select helper an option :disabled, passing either a single value or an array. You need to specify...
For Capybara, use this step: Then /^"([^"]*)" should be a disabled option for "([^"]*)"(?: within "([^\"]*)")?$/ do |value, field, selector| with_scope(selector...
So you're hunting down a regression (or just a bug) and want to use git bisect to find out...
We tend to use database transactions as a magic bullet to get rid of all our concurrency problems. When things...
Consul 0.9 comes with many new features to optimize powers that only check access to a given record. e.g. Power.current.post...
I recently encountered the error above when I was running selenium tests. Thanks to a post on stackoverflow I found...
Similar to closing an opened browser window, spreewald now supports the I switch to the new browser tab step.
Rails 4.0 is finally ready after a thorough process of betas and release candidates. It's an amazing new version...
This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...
Merge requests are often rejected for similar reasons. To avoid this, before you send a merge request, please confirm that...
Essential backports that enable many of the nice features of Ruby 1.8.7 up to 2.0.0 for earlier versions.
Capybara drivers will usually delete all cookies after each scenario. If you need to lose cookie data in the middle...
You have multiple options: Just don't have a type column. All STI magic will be disabled automatically.
Sometimes you need a piece of code to do something different for specs than for features. If you don't...
When you want to do a git diff but do not care about the full diff and just want to...