The errors you are getting come from the fact that your test database isn't migrated yet, you didn't create the tables yet.
I edited the wiki, here is what you need to do: $ rake db:automigrate MERB_ENV=test If you jump to step 15 you will see how to set the automigration once for all. I know it's probably very frustrating for you to go through all the pain of a bad tutorial :( However I do really appreciate your help, so don't hesitate if you have any other issues. - Matt On Fri, Dec 12, 2008 at 5:30 AM, robert-pl <[email protected]> wrote: > > When I try to run > rake spec:request > after step 7, I get this error: > > (in E:/DATA/merb-apps/myapp) > Loading init file from E:/DATA/merb-apps/myapp/config/init.rb > Loading E:/DATA/merb-apps/myapp/config/environments/development.rb > .* ~ no such table: articles > F ~ no such table: articles > F ~ no such table: articles > F. ~ no such table: articles > F ~ no such table: articles > F ~ no such table: articles > F > > Pending: > resource(:articles) GET contains a list of articles (TODO) > Called from ./spec/requests/articles_spec.rb:28 > > 1) > Sqlite3Error in 'resource(:articles) GET has a list of articles' > no such table: articles > ./spec/requests/articles_spec.rb:4: > > 2) > Sqlite3Error in 'resource(:articles) a successful POST redirects to > resource(:articles)' > no such table: articles > ./spec/requests/articles_spec.rb:48: > > 3) > Sqlite3Error in 'resource(@article) a successful DELETE should > redirect to the index action' > no such table: articles > ./spec/requests/articles_spec.rb:4: > > 4) > Sqlite3Error in 'resource(@article, :edit) responds successfully' > no such table: articles > ./spec/requests/articles_spec.rb:4: > > 5) > Sqlite3Error in 'resource(@article) GET responds successfully' > no such table: articles > ./spec/requests/articles_spec.rb:4: > > 6) > Sqlite3Error in 'resource(@article) PUT redirect to the article show > action' > no such table: articles > ./spec/requests/articles_spec.rb:4: > > Finished in 0.241 seconds > > 9 examples, 6 failures, 1 pending > rake aborted! > Command C:/My_Programs/ruby/bin/ruby -I"C:/My_Programs/ruby/lib/ruby/ > gems/1.8/gems/rspec-1.1.11/lib" "C:/My_Programs/ruby/lib/r > uby/gems/1.8/gems/rspec-1.1.11/bin/spec" "spec/requests/ > articles_spec.rb" --options ./spec/spec.opts failed > > Line 4 and 48 in articles_spec.rb is: > Article.all.destroy! > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
