From edd39c652c17376cd76dfe34767ec5b84716c029 Mon Sep 17 00:00:00 2001 From: Joe Ferris Date: Tue, 8 Jul 2008 10:05:47 -0400 Subject: [PATCH] Changed the integration test to check the old name bug --- test/integration_test.rb | 2 +- test/models.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration_test.rb b/test/integration_test.rb index e211fb9..245ff9e 100644 --- a/test/integration_test.rb +++ b/test/integration_test.rb @@ -11,7 +11,7 @@ class IntegrationTest < Test::Unit::TestCase end Factory.define :post do |f| - f.title 'Test Post' + f.name 'Test Post' f.author {|a| a.association(:user) } end diff --git a/test/models.rb b/test/models.rb index 624be44..36295e1 100644 --- a/test/models.rb +++ b/test/models.rb @@ -13,7 +13,7 @@ class CreateSchema < ActiveRecord::Migration end create_table :posts, :force => true do |t| - t.string :title + t.string :name t.integer :author_id end end @@ -27,6 +27,6 @@ class User < ActiveRecord::Base end class Post < ActiveRecord::Base - validates_presence_of :title, :author_id + validates_presence_of :name, :author_id belongs_to :author, :class_name => 'User' end