When using the resource_controller gem you often hook onto events like this: update.before do do_something end
In order to request a SSL certificate from any dealer, you usually need a CSR certificate. As both the CSR...
XPath matchers can be combined with CSS-selector matchers. This is really useful if not, for example, the content of...
When your cucumber features grow massively over time, the test execution can take a lot of time.
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...
Run rspec-and-cucumber from any project directory to run both RSpec and Cucumber. If available, rspec_spinner or cucumber...
When you want to quickly boot from a drive or image in a virtual machine you do not need to...
You can use CSS attribute selectors in your step definitions like this: Then /^the page should have a meta description...
A capybara driver that uses WebKit via QtWebKit.
ActiveRecord gives you the :include option to load records and their associations in a fixed number of queries. This is...
The Basic Authentication header encodes username and password. Effectively, it's just Base64 plus a "Basic" prefix.
If you want to manually check if e-mail delivery works on a machine by sending an e-mail you...
Artifice allows you to replace the Net::HTTP subsystem of Ruby with an equivalent that routes all requests to a...
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'))
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 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