Apache HTTP server benchmarking tool (ab) is a nice tool to test performance on sites delivered by HTTP. If the...
Every time you call $(...) jQuery will create a new object. Because of this, comparing two jQuery collections with == will never...
Axlsx is an incredible gem to generate "Office Open XML" spreadsheet files (XLSX). Does not break on large spreadsheets and...
You can define methods in any example group using Ruby's def keyword or define_method method: describe "example" do...
TLDR: In tests you need to clean out the database before each example. Use :transaction where possible. Use :deletion for...
As attachments to this card you will find a Cucumber feature and supplementing step definition that you can use to...
The basic idea is pretty simple: an element's height is accessible via the offsetHeight property, its drawn height via...
When searching for text in a MySQL table, you have two choices: The LIKE operator FULLTEXT indexes (which currently only...
Static error pages To add a few basic styles to the default error pages in Rails, just edit the default...
Capybara uses www.example.com as the default hostname when making requests. If your application does something specific on certain hostnames and...
For two years we've been using SearchableTrait which gives models the ability to process Googlesque queries like this: Contact.search...
Selenium cannot reliably control a browser when its window is not in focus, or when you accidentally interact with the...
The gem author Jonas Nicklas highlights in a Google Groups post that the release is not backwards compatible to 1...
While you can set your own font in your terminal or other tools, it will not change the default "Monospace...
Capybara gives you two different methods for executing Javascript: page.evaluate_script("$('input').focus()") page.execute_script("$('input').focus()")
Icon fonts like Font Awesome are infinitely scalable, look great on high-DPI displays and will give your app a...
Generally, Selenium tests use the browser to interact with the page. If it's unavailable, a timeout error is...
If you're using the Capybara webdriver, steps sometimes fail because the browser hasn't finished loading the next page...
Around will not happen until after a feature's Background has been processed. Use Before and After to avoid that...
If you require your Rails models manually, pay attention to the path you use. Unless you have...
Show failing specs instantly. Show passing spec as green dots as usual. Configuration: # spec/spec.opts (.rspec for rspec 2) --require rspec/instafail...
In a Rails application, *_spec.rb files get special treatment depending on the file's directory. E.g. when you put a...
Takes a screenshot when you call it, or when a test fails.
Geordi now supports our solution for running Selenium tests without having Firefox or Chrome windows popping up all over your...