From 8a3127a03cc95afa1f5b487baea382a6cb42d87a Mon Sep 17 00:00:00 2001
From: Domizio Demichelis
Date: Sun, 22 Jan 2012 13:31:25 -0400
Subject: [PATCH] added test hints for interactive hobo_fields tests
---
hobo_fields/test/interactive_primary_key.rdoctest | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hobo_fields/test/interactive_primary_key.rdoctest b/hobo_fields/test/interactive_primary_key.rdoctest
index 0227de844..1457a12b0 100644
--- a/hobo_fields/test/interactive_primary_key.rdoctest
+++ b/hobo_fields/test/interactive_primary_key.rdoctest
@@ -31,6 +31,7 @@ And requires also that you enter the right choice when prompted. OK we're ready
class Foo < ActiveRecord::Base
set_primary_key "id"
end
+ puts "\n\e[45m Please enter 'id' (no quotes) at the next prompt \e[0m"
>> Rails::Generators.invoke 'hobo:migration', %w(-n -m)
>> Foo.primary_key
=> 'id'
@@ -42,6 +43,7 @@ And requires also that you enter the right choice when prompted. OK we're ready
class Foo < ActiveRecord::Base
set_primary_key "foo_id"
end
+ puts "\n\e[45m Please enter 'drop id' (no quotes) at the next prompt \e[0m"
>> Rails::Generators.invoke 'hobo:migration', %w(-n -m)
>> Foo.primary_key
=> 'foo_id'