You know each_with_index from arrays: ['hello', 'universe'].each_with_index do |value, index| puts "#{index}: #{value}" end

In Cucumber, scenario outlines help avoiding tests that are basically the same, except for a few variables (such as different...

While RSpec 1 and 2 decided that specs inside spec/model are model specs, and those inside spec/features are feature specs...

When you don't only have a favicon.ico in your project but also PNGs of different sizes and backgrounds, you...

makandra dev
github.com

The debugger gem does not seem to be properly working on Ruby 2. Use byebug instead! Byebug is a simple...

See screenshot here. This is great news because network throttling is very painful in Linux. The features are already in...

Aruba is an extension to Cucumber that helps integration-testing command line tools. When your tests involve a Rails test...

When you cannot make Selenium trigger events you rely on (e.g. a "change" event when filling in a form field...

blog.salsify.com

An all-in-approach to fix the problem of pending AJAX requests dying in the browser when the server ends...

makandra dev

You need this awkward command: page.driver.browser.action.move_to(page.find(selector).native).perform Note that there are better ways for newer Capybaras...

github.com

Using this gem, whenever a Capybara test in Cucumber, Rspec or Minitest fails, the HTML for the failed page and...

regular-expressions.info

A little-known feature of modern Regexp engines that help when optimizing a pattern that will be matched against long...

When you tell rbenv to install a Ruby it does not know about, you will get an error message.

The error unexpected 'x' after 'DESCENDANT_SELECTOR' (Nokogiri::CSS::SyntaxError) (where x may be basically any character) occurs when the...

github.com

All the hidden and not hidden features of Git and GitHub.

wiki.macromates.com

When using TextMate2 with the cucumber bundle, it does not recognize step definitions (e.g. custom_steps.rb) as such but believes they...

requiremind.com

Batman is an alternative Javascript MVC with a similar flavor as AngularJS, but a lot less features and geared towards...

makandra dev

When you call a method on an object, Ruby looks for the implementation of that method. It looks in the...

Development environment setup Rails Composer Basically a comprehensive Rails Template. Prepares your development environment and lets you select web server...

makandra dev

Just found out about a great feature in Rails that seems to be around since Rails 2. Start a console...

String#indent is not a standard Ruby method. When you use it, be sure to know where this method comes...

github.com

"I click on ..." step fixed Errors added to ToleranceForSeleniumSyncIssues::RETRY_ERRORS Capybara::ElementNotFound Selenium::WebDriver::Error::ElementNotVisibleError Selenium::WebDriver::Error...

You might have a table without a primary key set in MySQL. You can fix this by adding a primary...

Spreewald includes a few useful steps for debugging a Capybara session. Then show me the page # => Opens the page in...