When your cucumber features grow massively over time, the test execution can take a lot of time.
We recently decided to put static content for HouseTrip.com to Amazon Cloudfront for a faster user experience. This happens fully...
Run rspec-and-cucumber from any project directory to run both RSpec and Cucumber. If available, rspec_spinner or cucumber...
If you want to play music or sounds from a browser, your choice is to use either Flash or the...
When storing floating-point numbers such as prices or totals in an SQL database, always use a DECIMAL column. Never...
ActiveRecord models know how to cast a given string to the type of a given attribute (or column).
The Basic Authentication header encodes username and password. Effectively, it's just Base64 plus a "Basic" prefix.
I prefer using Opera's "User mode" to toggle an outlining of HTML elements quickly. This helps greatly when you...
Note: ActiveRecord::Base#becomes has a lot of quirks and inconsistent behavior. You probably want to use ActiveType.cast instead.
mitmproxy is an SSL-capable, intercepting HTTP proxy. It provides a console interface that allows traffic flows to be inspected...
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...
The information in this card is only relevant for Rails 2.3-era apps. This note gives a quick introduction into...
Note that you cannot currently use Ruby 1.9.2 with Rails 2 applications that use RSpec, so don't upgrade if...
Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2
Add deprecation warnings and their solution or link to available solutions. Global access to Rake DSL methods is deprecated. Please...
If in your application your users pass along params that result in filenames, like invoices/generated?number=123. This could be...
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...
If you have the following deprecation warning after upgrading to rails >= 2.3.10 DEPRECATION WARNING: The :overwrite_params option is deprecated...
track down warnings and to see failing specs immediately or to get an overview of the core...
So you are comparing two Time objects in an RSpec example, and they are not equal, although they look equal...