Permalink
Browse files

Fixes to hobo/model doctest

  • Loading branch information...
1 parent ec4ab6b commit 4aec06fab7d756912c41b472b2d10ed13bf16fbc @tslocke committed Nov 11, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 hobo/test/doctest/hobo/model.rdoctest
@@ -52,10 +52,8 @@ declaration:
end
- $ rails generate hobo:migration -n -m
-
>> Rails::Generators.invoke 'hobo:migration', %w(-n -m)
- >> Post.all
+ >> Post.connection.execute 'select * from posts' # Post.all was breaking : /
=> []
{.hidden}
@@ -133,7 +131,7 @@ object. In this case, you can provide your own name method instead:
$ rails generate hobo:migration -n -m
>> Rails::Generators.invoke 'hobo:migration', %w(-n -m)
- >> Person.all
+ >> Person.connection.execute 'select * from people'
=> []
{.hidden}

0 comments on commit 4aec06f

Please sign in to comment.