Skip to content

Commit

Permalink
added test hints for interactive hobo_fields tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Jan 22, 2012
1 parent 9693358 commit 8a3127a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hobo_fields/test/interactive_primary_key.rdoctest
Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit 8a3127a

Please sign in to comment.