Categories: Testing [Edit]

active_mocker

https://rubygems.org/gems/active_mocker
https://github.com/zeisler/active_mocker
Creates stub classes from any ActiveRecord model. By using stubs in your tests you don't need to load Rails or the database, sometimes resulting in a 10x speed improvement. ActiveMocker analyzes the methods and database columns to generate a Ruby class file. The stub file can be run standalone and comes included with many useful parts of ActiveRecord. Stubbed out methods contain their original argument signatures or ActiveMocker friendly code can be brought over in its entirety. Mocks are regenerated when the schema is modified so your mocks won't go stale, preventing the case where your unit tests pass but production code fails.

Total

Ranking: 8,889 of 183,127
Downloads: 309,996

Daily

Ranking: 25,792 of 183,106
Downloads: 6

Depended by

RankDownloadsName
142,5553,687csv_loader

Depends on

RankDownloadsName
12,409,222,051bundler
7990,071,846activesupport
10954,475,095rake
25818,160,872rspec
58487,757,125ruby-progressbar
63475,957,407rubocop
271135,069,222colorize
359101,265,688virtus
22,37559,809dissociated_introspection
26,27147,582active_record_schema_scrapper
42,31725,212reverse_parameters

Owners

#GravatarHandle
1iconzeisler