https://github.com/lodestone/assert-agile
Like assert, but with Super Ninja Robot Magic
https://github.com/lodestone/assert-agile
Last synced: 3 months ago
JSON representation
Like assert, but with Super Ninja Robot Magic
- Host: GitHub
- URL: https://github.com/lodestone/assert-agile
- Owner: lodestone
- License: mit
- Created: 2008-11-18T16:22:47.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2008-11-18T18:55:26.000Z (over 16 years ago)
- Last Synced: 2025-02-13T02:39:32.269Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 105 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
A fork of Phlip's assert2 (http://assert2.rubyforge.org) with bug fixes and merged assert_latest
assert { foo == 42 }
# For Rails or anything responding to .maximum and .find
assert_latest Account, User do
account = Account.create(:name => 'Foo Mart')
account.users.create(:login => 'foo-guy')
end# You can grab the created records thusly:
account, user = assert_latest Account, User do
account = Account.create(:name => 'Foo Mart')
account.users.create(:login => 'foo-guy')
end