Skip to content

Commit

Permalink
Renamed the tests so they end in test instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
delynn committed Apr 5, 2008
1 parent 392d1ee commit 8828525
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def setup
end

def test_comment_creation_with_stamped_object
assert_equal @delynn.id, Person.stamper
assert_equal @delynn, Person.stamper

comment = Comment.create(:comment => "Test Comment")
assert_equal @delynn.id, comment.created_by
Expand All @@ -26,7 +26,7 @@ def test_comment_creation_with_stamped_object

def test_comment_creation_with_stamped_integer
Person.stamper = 2
assert_equal 2, Person.stamper
assert_equal 2, Person.stamper.id

comment = Comment.create(:comment => "Test Comment - 2")
assert_equal @nicole.id, comment.created_by
Expand All @@ -37,7 +37,7 @@ def test_comment_creation_with_stamped_integer

def test_comment_updating_with_stamped_object
Person.stamper = @nicole
assert_equal @nicole.id, Person.stamper
assert_equal @nicole, Person.stamper

@first_comment.comment << " - Updated"
@first_comment.save
Expand All @@ -50,7 +50,7 @@ def test_comment_updating_with_stamped_object

def test_comment_updating_with_stamped_integer
Person.stamper = 2
assert_equal 2, Person.stamper
assert_equal 2, Person.stamper.id

@first_comment.comment << " - Updated"
@first_comment.save
Expand Down
16 changes: 8 additions & 8 deletions test/stamping_tests.rb → test/stamping_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def setup
end

def test_person_creation_with_stamped_object
assert_equal @zeus.id, User.stamper
assert_equal @zeus, User.stamper

person = Person.create(:name => "David")
assert_equal @zeus.id, person.creator_id
Expand All @@ -26,7 +26,7 @@ def test_person_creation_with_stamped_object

def test_person_creation_with_stamped_integer
User.stamper = 2
assert_equal 2, User.stamper
assert_equal 2, User.stamper.id

person = Person.create(:name => "Daniel")
assert_equal @hera.id, person.creator_id
Expand All @@ -36,7 +36,7 @@ def test_person_creation_with_stamped_integer
end

def test_post_creation_with_stamped_object
assert_equal @delynn.id, Person.stamper
assert_equal @delynn, Person.stamper

post = Post.create(:title => "Test Post - 1")
assert_equal @delynn.id, post.creator_id
Expand All @@ -47,7 +47,7 @@ def test_post_creation_with_stamped_object

def test_post_creation_with_stamped_integer
Person.stamper = 2
assert_equal 2, Person.stamper
assert_equal 2, Person.stamper.id

post = Post.create(:title => "Test Post - 2")
assert_equal @nicole.id, post.creator_id
Expand All @@ -58,7 +58,7 @@ def test_post_creation_with_stamped_integer

def test_person_updating_with_stamped_object
User.stamper = @hera
assert_equal @hera.id, User.stamper
assert_equal @hera, User.stamper

@delynn.name << " Berry"
@delynn.save
Expand All @@ -71,7 +71,7 @@ def test_person_updating_with_stamped_object

def test_person_updating_with_stamped_integer
User.stamper = 2
assert_equal 2, User.stamper
assert_equal 2, User.stamper.id

@delynn.name << " Berry"
@delynn.save
Expand All @@ -84,7 +84,7 @@ def test_person_updating_with_stamped_integer

def test_post_updating_with_stamped_object
Person.stamper = @nicole
assert_equal @nicole.id, Person.stamper
assert_equal @nicole, Person.stamper

@first_post.title << " - Updated"
@first_post.save
Expand All @@ -97,7 +97,7 @@ def test_post_updating_with_stamped_object

def test_post_updating_with_stamped_integer
Person.stamper = 2
assert_equal 2, Person.stamper
assert_equal 2, Person.stamper.id

@first_post.title << " - Updated"
@first_post.save
Expand Down
File renamed without changes.

0 comments on commit 8828525

Please sign in to comment.