Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Like assert, but with Super Ninja Robot Magic
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
tasks
test
CHANGELOG
LICENSE
README
Rakefile
assert-agile.gemspec
init.rb
install.rb
uninstall.rb

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

Something went wrong with that request. Please try again.