timecop
RecommendedA gem providing "time travel" and "time freezing" capabilities, making it dead simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.
Save 36% for Black Friday! Save 36% on GoRails for Black Friday! Learn more
A gem providing "time travel" and "time freezing" capabilities, making it dead simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.
factory_bot provides a framework and DSL for defining and using factories - less error-prone, more explicit, and all-around easier to work with than fixtures.
Fabrication is an object generation framework for ActiveRecord, Mongoid, DataMapper, Sequel, or any other Ruby object.
WebMock allows stubbing HTTP requests and setting expectations on HTTP requests.
Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.
Capybara is an integration testing tool for rack based web applications. It simulates how a user would interact with a website
WebDriver is a tool for writing automated tests of websites. It aims to mimic the behaviour of a real user, and as such interacts with the HTML of the application.