This is a bug in Timecop 0.3.4 or lower. You should upgrade to 0.3.5.
Feature Queries (Edge 12+): Similar to @media queries, @supports blocks can be scoped to browsers that support a given declaration...
If you need to follow links, click buttons, etc. using Capybara inside an , you can do it like this:
The attached RSpec matcher allows for comfortably testing delegation. Examples describe Post do it { should delegate(:name).to(:author).with_prefix } # post.author_name it { should delegate(:month).to(:created_at...
...to :log or :raise to enable. The default value is :log in development and test environments, and false in all other environments. Rails 3: If you include the strong_params...
PostgreSQL's array data type is pretty useful, but manipulating values of arrays can be awkward because of its syntax...
Just add the parameter :post to the visit method: visit publish_entry_path, :post
Don't you just hate to write Cucumber path helpers to be able to say this?
Consul 0.4.0 comes with some new features. Dependencies Consul no longer requires assignable_values, it's optional for when you...
The following example is from the Cucumber wiki: Given a blog post named "Random" with Markdown body """ Some Title, Eh...
Be careful when stubbing out attributes on records that are defined by associations. Nothing is as it seems to be...
In theory you can take any scope and extend it with additional joins or conditions. We call this chaining scopes...
This only applies to RSpec below version 1.3.2. The issue has been fixed in RSpec 1.3.2, and most likely RSpec...
Sometimes in the course of development you may need to mock HTTP responses. This is a simple service to return...
...for Ruby. It could be run periodically from a scheduler and check if application tests are broken. In case of failed tests Cerberus sends notification to developers...
It turned out that the test subject didn't know that longdesc even existed before the tester told him about it. Can you blame him...
Rake tasks to run specs and tests in parallel, to use multiple CPUs and speedup test runtime...
Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with clean & simple API. Mockito doesn't give you hangover because the tests are very...
RESTClient is a Java application to test RESTful webservices. It can be used to test variety of HTTP communications...
Test spies are a form of test double that preserves the normal four-phase unit
Don't write resources :people, :concerns => :trashable Write resources :people do concerns :trashable end Why Writing a controller...
When you develop a gem and you have a Gemfile in your project directory, you might be surprised that your...
Spreewald's patiently repeats the given block again and again until it either passes or times out.