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

makandra dev
github.com

Artifice allows you to replace the Net::HTTP subsystem of Ruby with an equivalent that routes all requests to a...

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...

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

phantomjs.org

PhantomJS is a minimalistic headless WebKit. It has fast and native support for various web standards: DOM handling, CSS selector...

Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2

Cucumber scenarios that are tagged with @javascript so they run with Selenium are very slow. You might not want to...

The attached RSpec matcher exist_in_database checks if a given record still exists in the database and has not...

We are maintaining some vintage projects with tests written in Test::Unit instead of RSpec. Mocks and stubs are not...

track down warnings and to see failing specs immediately or to get an overview of the core...

You will occasionally need to clean out your database while keeping the schema intact, e.g. when someone inserted data in...

When you click a link or a press a button on a Selenium-controlled browser, the call will return control...

github.com

Adds a slide out panel to your Rails application that directs clients to test stories that have been marked as...

api.jquery.com

jQuery offers many different methods to move a selection through the DOM tree. These are the most important: $element.find(selector...

So you are comparing two Time objects in an RSpec example, and they are not equal, although they look equal...

rhnh.net

In order to cover some edge cases you rarely care about, Range#include? will become very slow in Ruby 1.9...

If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...

makandra dev
innig.net

If you want to get a deep understanding of how closures, blocks, procs & lambdas in Ruby work, check out the...

blog.plataformatec.com.br

A while ago we were working on an application that had an entire version specially created for mobiles, such as...

Note: For PostgreSQL you should use advisory locks. For MySQL we still recommend the solution in this card.

web.archive.org

When you have a Cucumber step like Then I should see "Did you see those \"quotation marks\" over there...