Modern IRB has time measurement built in. measure # Enable measure :off # Disable Custom Should your version of IRB not offer...
# Attach a file # # Example: # # Company.new.logo = File.new… # # Given the file "…" was attached as logo to the company above # # # Example: # # class Gallery...
This error occurs when you already have a database.yml which defines the database for the cucumber environment instead of test...
I've written about the problem with user stories before. At the time, I found it better to just have...
Font Awesome 4 has renamed all icons. What the fuck. Check the attached link for an icon list for the...
We proudly release our safe_cookies middleware into public beta and just published it on Github. Features are:
When you build a link for an email body like this body = "Please click the following link" body << "http://posts/130...
It is good programming practice to Don't Repeat Yourself (or DRY). In Ruby on Rails we keep our code...
Geordi 0.16+ supports running selenium tests with project-specific firefox versions. Just update the gem. It will still default to...
So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...
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...