Sha256: 32d58fa97990fedff617dbe150c0d582c2dff1b4f7c7a60d34ef29c9b47f50f9

Contents?: true

Size: 522 Bytes

Versions: 5

Compression:

Stored size: 522 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class PersonTest < Test::Unit::TestCase
  #fixtures :people, LoginEngine.config(:user_table).to_sym
  fixtures :people, :users, :elts, :mails, :attachments, :subscriptions

  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

5 entries across 5 versions & 1 rubygems

Version Path
parlement-0.10 test/unit/person_test.rb
parlement-0.11 test/unit/person_test.rb
parlement-0.12 test/unit/person_test.rb
parlement-0.13 test/unit/person_test.rb
parlement-0.14 test/unit/person_test.rb