RubyGems Navigation menu

mockumentary 0.2.1

With the happy proliferation of TDD, test suites are getting massive, and developer efficiency is dwindling as we wait for our tests to pass. There is a big tradeoff between making unit test more integrationish (and therefore more reliable) vs. making them very mocky, unity and fast. Mockumentary is a library for the later. It inspects the ActiveRecord universe and makes a series of AR mockeries that approximate model without hitting the database, or making any assertions. The assertions, they are still part of the developers job. Mocumentary has two types of AR mockeries: One is used within the Rails universe. It uses introspection to derive association and field information. The second is a static copy built from the first. This static version can be used outside the Rails test universe in a suite faster than the speed of Rails environment load time. Mocking isn't for everyone, so test-drive responsibly.

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 0.2.1 - November 29, 2011 (15.5 KB)
  2. 0.2.0 - October 28, 2011 (14.5 KB)

Runtime 相依性套件 (3):

activesupport >= 2.3.5
faker >= 0
hashie >= 0

Development 相依性套件 (5):

activerecord ~> 3.1.1
bundler ~> 1.0.0
jeweler ~> 1.6.4
rspec ~> 2.3.0
sqlite3 >= 0

擁有者:

作者:

  • Kane Baccigalupi

SHA 256 checksum:

5b4e6b000c72629cb9c560496eb73daa9cd7c2d85cadd435a7b83a52b98f3c66

總下載次數 7,320

這個版本 4,153

License:

Ruby 版本需求:

相關連結: