[rspec-users] Problems with RC1 & Rails Controllers
Scott Taylor
mailing_lists at railsnewbie.com
Thu Mar 1 02:48:35 EST 2007
I'm now using the 0.8.0 RC1 gem and have the same version of rspec
and rspec_on_rails checked out into my vendor/plugins directory.
I'm having a problems with controllers... I've generated a controller
using the ./script/generate rspec_controller MyController. When I
try to run the rake spec:controller task I get the following:
euclid% rake spec:controllers
(in /Users/smtlaissezfaire/Sites/rails/dictionary)
/opt/local/bin/ruby -I"/Users/smtlaissezfaire/Sites/rails/dictionary/
vendor/plugins/rspec/lib" "/Users/smtlaissezfaire/Sites/rails/
dictionary/vendor/plugins/rspec/bin/spec" "spec/controllers/
my_controller_controller_spec.rb" --options "/Users/smtlaissezfaire/
Sites/rails/dictionary/config/../spec/spec.opts"
/opt/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/
errors.rb:94:in `check': SQL logic error or missing database
(SQLite3::SQLException)
from /opt/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/
lib/sqlite3/resultset.rb:76:in `check'
from /opt/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/
lib/sqlite3/resultset.rb:68:in `commence'
from /opt/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/
lib/sqlite3/resultset.rb:61:in `initialize'
from /opt/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/
lib/sqlite3/statement.rb:163:in `new'
from /opt/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/
lib/sqlite3/statement.rb:163:in `execute'
from /opt/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/
lib/sqlite3/database.rb:212:in `execute'
from /opt/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/
lib/sqlite3/database.rb:187:in `prepare'
from /opt/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/
lib/sqlite3/database.rb:211:in `execute'
... 29 levels...
from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/
plugins/rspec/lib/spec/runner/option_parser.rb:180:in `parse'
from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/
plugins/rspec/lib/spec/runner/option_parser.rb:13:in
`create_context_runner'
from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/
plugins/rspec/lib/spec/runner/command_line.rb:12:in `run'
from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/
plugins/rspec/bin/spec:4
rake aborted!
Command failed with status (1): [/opt/local/bin/ruby -I"/Users/
smtlaissezfa...]
This looks like the sort of error one would get with a bad fixture
file. My only problem is that I can run rake spec:models without a
problem.
The test log shows this:
Spec::Rails::Runner::HelperEvalContextController: missing default
helper path spec/rails/runner/helper_eval_context_helper
Spec::Rails::Runner::ViewSpecController: missing default helper path
spec/rails/runner/view_spec_helper
Just to make it clear, I've also run script/generate rspec
I'm running OS X.4.8,
ruby 1.8.5 (2006-12-25 patchlevel 12) [powerpc-darwin8.8.0]
edge rails (revision 6265)
and the RC1 gem, as stated before.
Let me know If I should post this as a bug report, or if I'm missing
something.
Best,
Scott Taylor
More information about the rspec-users
mailing list