Sha256: 999cb152386c941055c27faa2a85022d695ee49bf75b8581e8ebd921d1f3ca2e
Contents?: true
Size: 449 Bytes
Versions: 2
Compression:
Stored size: 449 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class PersonTest < Test::Unit::TestCase fixtures :people, LoginEngine.config(:user_table).to_sym def setup @person = Person.find(:first) end # Replace this with your real tests. def test_truth assert_kind_of Person, @person end def test_collision p = Person.new p.name = "bob10" assert p.save p = Person.new p.name = "bob10" assert !p.save end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
parlement-0.1 | test/unit/person_test.rb |
parlement-0.2 | test/unit/person_test.rb |