<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,6 @@
 class AddTitleToQuestions &lt; ActiveRecord::Migration
   def self.up
-    add_column :questions, :title, :string, :null =&gt; false
+    add_column :questions, :title, :string
   end
 
   def self.down</diff>
      <filename>db/migrate/005_add_title_to_questions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@ class Oracle::AnswersControllerTest &lt; ActionController::TestCase
       @request    = ActionController::TestRequest.new
       @response   = ActionController::TestResponse.new
       
-      @question = Oracle::Question.create(:body =&gt; &quot;what is the meaning of life?&quot;)
+      @question = Factory(:question)
     end
 
     context &quot;list for a given question&quot; do</diff>
      <filename>test/answers_controller_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,7 +10,7 @@ class Member::Oracle::AnswersControllerTest &lt; ActionController::TestCase
       @user = create_user_without_validation
       @controller.stubs(:current_user).returns(@user)
       
-      @question = ::Oracle::Question.create(:body =&gt; &quot;What is the meaning of life?&quot;) 
+      @question = Factory(:question)
     end
     
     context &quot;new&quot; do</diff>
      <filename>test/member_answers_controller_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -20,7 +20,7 @@ class Member::Oracle::QuestionsControllerTest &lt; ActionController::TestCase
     
     context &quot;creation&quot; do
       setup do
-        post :create, :question =&gt; { :body =&gt; &quot;Where is the fountain of eternal youth?&quot; }
+        post :create, :question =&gt; Factory.attributes_for(:question)
       end
       should_set_the_flash_to &quot;Question created.&quot;
       should_redirect_to(&quot;the list of the user's questions&quot;) { member_oracle_questions_path }</diff>
      <filename>test/member_questions_controller_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,14 +7,14 @@ class Oracle::QuestionsControllerTest &lt; ActionController::TestCase
       @request    = ActionController::TestRequest.new
       @response   = ActionController::TestResponse.new
       
-      @question = Oracle::Question.create(:body =&gt; &quot;Meaning of life?&quot;)
+      @question = Factory(:question)
     end
     
     context &quot;update&quot; do
       context &quot;for the question's publisher&quot; do
         setup do
           @controller.stubs(:current_user).returns(@question.user)
-          put :update, :id =&gt; @question, :params =&gt; { :question =&gt; { :body =&gt; &quot;Meaning of love?&quot; } }
+          put :update, :id =&gt; @question, :params =&gt; { :question =&gt; Factory.attributes_for(:question) }
         end
         should_set_the_flash_to &quot;Question updated.&quot;
         should_redirect_to(&quot;the list of answers to that question&quot;) { oracle_question_answers_path(@question) }
@@ -23,7 +23,7 @@ class Oracle::QuestionsControllerTest &lt; ActionController::TestCase
       context &quot;for someone other than the question's publisher&quot; do
         setup do
           @controller.stubs(:current_user).returns(create_user_without_validation)
-          put :update, :id =&gt; @question, :params =&gt; { :question =&gt; { :body =&gt; &quot;Meaning of love?&quot; } }
+          put :update, :id =&gt; @question, :params =&gt; { :question =&gt; Factory.attributes_for(:question) }
         end
         # should_set_the_flash_to &quot;Error during question update.&quot;
         should_redirect_to(&quot;the login page&quot;) { login_path }</diff>
      <filename>test/questions_controller_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>40ee4f1b276665b07d2e5cf15736163cbf80f929</id>
    </parent>
  </parents>
  <author>
    <name>Balint Erdi</name>
    <email>balint.erdi@gmail.com</email>
  </author>
  <url>http://github.com/tog/tog_oracle/commit/ae178136d6aa09c5131a34f74fe9a4d3954ceb02</url>
  <id>ae178136d6aa09c5131a34f74fe9a4d3954ceb02</id>
  <committed-date>2009-04-30T05:16:47-07:00</committed-date>
  <authored-date>2009-04-30T05:16:47-07:00</authored-date>
  <message>making all tests pass again after starting to use factory_girl

Signed-off-by: Balint Erdi &lt;balint.erdi@gmail.com&gt;</message>
  <tree>58016a29e6bba1a512c66668bbff2707b11e951b</tree>
  <committer>
    <name>Balint Erdi</name>
    <email>balint.erdi@gmail.com</email>
  </committer>
</commit>
