Skip to content

Instantly share code, notes, and snippets.

@emachnic
Created September 7, 2010 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emachnic/568445 to your computer and use it in GitHub Desktop.
Save emachnic/568445 to your computer and use it in GitHub Desktop.
padrino rake spec -e test
=> Executing Rake spec ...
=> Located unlocked Gemfile for test
PostsController
- should be successful
Account Model
- can be created (FAILED - 1)
Post Model
- can be created (FAILED - 2)
1)
ActiveRecord::StatementInvalid in 'Account Model can be created'
Could not find table 'accounts'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/connection_adapters/sqlite_adapter.rb:295:in `table_structure'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/connection_adapters/sqlite_adapter.rb:186:in `columns'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:679:in `columns'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/persistence.rb:285:in `attributes_from_column_definition'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/locking/optimistic.rb:62:in `attributes_from_column_definition'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1396:in `initialize'
spec/models/account_spec.rb:5:in `new'
spec/models/account_spec.rb:5:in `block (2 levels) in <top (required)>'
2)
ActiveRecord::StatementInvalid in 'Post Model can be created'
Could not find table 'posts'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/connection_adapters/sqlite_adapter.rb:295:in `table_structure'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/connection_adapters/sqlite_adapter.rb:186:in `columns'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:679:in `columns'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/persistence.rb:285:in `attributes_from_column_definition'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/locking/optimistic.rb:62:in `attributes_from_column_definition'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1396:in `initialize'
spec/models/post_spec.rb:5:in `new'
spec/models/post_spec.rb:5:in `block (2 levels) in <top (required)>'
Finished in 0.275031401 seconds
3 examples, 2 failures
rake aborted!
Command /home/evan/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -I"lib" "/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/rspec-1.3.0/bin/spec" "spec/controllers/posts_controller_spec.rb" "spec/models/account_spec.rb" "spec/models/post_spec.rb" -fs --color failed
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/rspec-1.3.0/lib/spec/rake/spectask.rb:177:in `block (2 levels) in define'
/home/evan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rake.rb:1110:in `verbose'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/rspec-1.3.0/lib/spec/rake/spectask.rb:153:in `block in define'
/home/evan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rake.rb:634:in `call'
/home/evan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rake.rb:634:in `block in execute'
/home/evan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rake.rb:629:in `each'
/home/evan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rake.rb:629:in `execute'
/home/evan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rake.rb:595:in `block in invoke_with_call_chain'
/home/evan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/home/evan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rake.rb:588:in `invoke_with_call_chain'
/home/evan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rake.rb:581:in `invoke'
/home/evan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rake.rb:2041:in `invoke_task'
/home/evan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rake.rb:2019:in `block (2 levels) in top_level'
/home/evan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rake.rb:2019:in `each'
/home/evan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rake.rb:2019:in `block in top_level'
/home/evan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
/home/evan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rake.rb:2013:in `top_level'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/padrino-core-0.9.15/lib/padrino-core/cli/rake.rb:9:in `init'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/padrino-core-0.9.15/lib/padrino-core/cli/base.rb:49:in `rake'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.0/lib/thor/task.rb:22:in `run'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.0/lib/thor/invocation.rb:118:in `invoke_task'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.0/lib/thor.rb:246:in `dispatch'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.0/lib/thor/base.rb:389:in `start'
/home/evan/.rvm/gems/ruby-1.9.2-p0/gems/padrino-core-0.9.15/bin/padrino:8:in `<top (required)>'
/home/evan/.rvm/gems/ruby-1.9.2-p0/bin/padrino:19:in `load'
/home/evan/.rvm/gems/ruby-1.9.2-p0/bin/padrino:19:in `<main>'
@jmccartie
Copy link

I woke up this morning with a similar error. Did you get this issue resolved?

@emachnic
Copy link
Author

emachnic commented Feb 7, 2011

I think I gave up on it since the site is pretty small and I was getting annoyed trying to figure out why the tests won't run. My site is up now but I haven't tried to run any tests on it in months. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment