When your cucumber features grow massively over time, the test execution can take a lot of time.

api.rubyonrails.org

Wrapping a string in this class gives you a prettier way to test for equality.

This is an awful way to test whether a number is shown on the screen: Then I should see "5...

Capybara allows you to select DOM elements, e.g. by using field, find_field(...) or field_labeled(...): role_select = field_labeled...

These steps are now part of Spreewald. Here are some useful examples how to use the attached Cucumber Timecop steps...

Sometimes PDF cucumber tests fail at the first test run and succeed at the second run. You can fix this...

Internet Explorer 5+ is aware of conditional comments that let you target HTML for selected versions of IE. For example...

makandra dev

You know that you can collect an array as groups using in_groups or in_groups_of. Maybe you want...

Run rspec-and-cucumber from any project directory to run both RSpec and Cucumber. If available, rspec_spinner or cucumber...

wiki.qemu.org

When you want to quickly boot from a drive or image in a virtual machine you do not need to...

makandra dev

Validations that need to access an associated object may lead to some trouble. Let's exemplify that using this example...

ActiveRecord gives you the :include option to load records and their associations in a fixed number of queries. This is...

ActiveRecord models know how to cast a given string to the type of a given attribute (or column).

linux.die.net

Reading a URL via GET: curl http://example.com/ Defining any HTTP method (like POST or PUT): curl http://example.com/users/1...

The Basic Authentication header encodes username and password. Effectively, it's just Base64 plus a "Basic" prefix.

blog.plataformatec.com.br

It is common in Rails 3.0 applications that you want to provide default views for a group of controllers. Let...

If you want to manually check if e-mail delivery works on a machine by sending an e-mail you...

benmabey.com

Bryan talked about the differences between imperative and declarative scenarios. In my opinion, both styles have benefits and should be...

When you write a custom RSpec matcher a good place to store them is to create one file per matcher...

To test whether a hash includes an expected sub-hash: expect(user.attributes).to match(hash_including('name' => 'Bruce Wayne'))

jeffkreeftmeijer.com

Back when Steak was first released, Capybara didn’t have any of the nice RSpec helpers it does now. A...

makandra dev

The information in this card is only relevant for Rails 2.3-era apps. This note gives a quick introduction into...

makandra dev
ruzee.com

Liquid Canvas is a JavaScript library which allows you to draw inside an HTML canvas element with an easy yet...

Note that you cannot currently use Ruby 1.9.2 with Rails 2 applications that use RSpec, so don't upgrade if...