Wayne Conrad
unread,Sep 7, 2010, 2:49:56 PM9/7/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Steak
New Steak eater here, and I can't get the BBQ lit.
I have existing spec:controllers, spec:models and spec:helpers
tests, which run fine before I install Steak. After installing
Steak, I get this exception:
/var/lib/gems/1.8/gems/activesupport-2.2.3/lib/active_support/
dependencies.rb:442:in `load_missing_constant': uninitialized constant
Spec::Rails::Example::IntegrationExampleGroup (NameError)
Details follow. Thank you for any help you can give.
- Wayne Conrad
----- Versions
Linux 2.6.32-5-686-bigmem
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
Gems loaded by config/environment.rb
hoe (2.6.1)
SyslogLogger (1.4.0)
SystemTimer (1.2)
jeremyevans-exception_notification (1.0.20090610)
memcache (1.2.12)
mislav-will_paginate (2.3.11)
rails (2.2.3)
rubyforge (2.0.4)
topfunky-gruff (0.3.5)
validates_timeliness (2.1.0)
Gems loaded by config/environments/test.rb
email_spec (0.6.3)
remarkable (3.1.13)
remarkable_activerecord (3.1.13)
remarkable_rails (3.1.13)
rspec (1.3.0)
rspec-rails (1.3.2)
steak (0.3.8)
timecop (0.3.5)
----- The control sample: How it runs before installing steak
devel@dopey:~/production/main/portal$ rake -t -v spec:helpers
(in /home/devel/production/main/portal)
** Invoke spec:helpers (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:clone_structure (first_time)
** Invoke db:structure:dump (first_time)
** Execute db:structure:dump
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Execute db:test:clone_structure
** Execute spec:helpers
/usr/lib/ruby/1.8/i486-linux/postgres.so: warning: already initialized
constant CONNECTION_OK
/usr/lib/ruby/1.8/i486-linux/postgres.so: warning: already initialized
constant CONNECTION_BAD
/home/devel/production/main/portal/app/controllers/
processing_notes_controller.rb:282: warning: already initialized
constant PERSISTENT
......**
Pending:
UploadHelper should do whatever canned uploads does (???)
./spec/helpers/upload_helper_spec.rb:107
UploadHelper should do whatever upload counts summary (TODO)
./spec/helpers/upload_helper_spec.rb:111
Finished in 0.045949 seconds
8 examples, 0 failures, 2 pending
----- Installing steak
Add to config/environments/test.rb: config.gem "steak"
Then:
devel@dopey:~/production/main/portal$ sudo RAILS_ENV=test rake
gems:install
(in /home/devel/production/main/portal)
gem install steak
Successfully installed steak-0.3.8
1 gem installed
Installing ri documentation for steak-0.3.8...
Installing RDoc documentation for steak-0.3.8...
----- The experimental sample: How it runs after installing steak
devel@dopey:~/production/main/portal$ rake -t -v spec:helpers
(in /home/devel/production/main/portal)
** Invoke spec:helpers (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:clone_structure (first_time)
** Invoke db:structure:dump (first_time)
** Execute db:structure:dump
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Execute db:test:clone_structure
** Execute spec:helpers
/var/lib/gems/1.8/gems/activesupport-2.2.3/lib/active_support/
dependencies.rb:442:in `load_missing_constant': uninitialized constant
Spec::Rails::Example::IntegrationExampleGroup (NameError)
from /var/lib/gems/1.8/gems/activesupport-2.2.3/lib/
active_support/dependencies.rb:77:in `rake_original_const_missing'
from /var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2503:in
`const_missing'
from /var/lib/gems/1.8/gems/steak-0.3.8/lib/steak.rb:16
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /var/lib/gems/1.8/gems/activesupport-2.2.3/lib/
active_support/dependencies.rb:155:in `require'
from /var/lib/gems/1.8/gems/rails-2.2.3/lib/rails/
gem_dependency.rb:95:in `load'
from /var/lib/gems/1.8/gems/rails-2.2.3/lib/initializer.rb:
281:in `load_gems'
from /var/lib/gems/1.8/gems/rails-2.2.3/lib/initializer.rb:
281:in `each'
from /var/lib/gems/1.8/gems/rails-2.2.3/lib/initializer.rb:
281:in `load_gems'
from /var/lib/gems/1.8/gems/rails-2.2.3/lib/initializer.rb:
164:in `process'
from /var/lib/gems/1.8/gems/rails-2.2.3/lib/initializer.rb:
112:in `send'
from /var/lib/gems/1.8/gems/rails-2.2.3/lib/initializer.rb:
112:in `run'
from /home/devel/production/main/portal/config/environment.rb:
16
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from ./spec/helpers/../spec_helper.rb:4
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from ./spec/helpers/upload_helper_spec.rb:1
from /var/lib/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/
example_group_runner.rb:15:in `load'
from /var/lib/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/
example_group_runner.rb:15:in `load_files'
from /var/lib/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/
example_group_runner.rb:14:in `each'
from /var/lib/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/
example_group_runner.rb:14:in `load_files'
from /var/lib/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/
options.rb:133:in `run_examples'
from /var/lib/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/
command_line.rb:9:in `run'
from /var/lib/gems/1.8/gems/rspec-1.3.0/bin/spec:5
rake aborted!
Command /usr/bin/ruby1.8 -I"lib" "/var/lib/gems/1.8/gems/rspec-1.3.0/
bin/spec" "spec/helpers/upload_helper_spec.rb" --options "/home/devel/
production/main/portal/spec/spec.opts" failed
/var/lib/gems/1.8/gems/rspec-1.3.0/lib/spec/rake/spectask.rb:177
/usr/lib/ruby/1.8/rake.rb:1112:in `verbose'
/var/lib/gems/1.8/gems/rspec-1.3.0/lib/spec/rake/spectask.rb:153
/usr/lib/ruby/1.8/rake.rb:636:in `call'
/usr/lib/ruby/1.8/rake.rb:636:in `execute'
/usr/lib/ruby/1.8/rake.rb:631:in `each'
/usr/lib/ruby/1.8/rake.rb:631:in `execute'
/usr/lib/ruby/1.8/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:590:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:583:in `invoke'
/usr/lib/ruby/1.8/rake.rb:2051:in `invoke_task'
/usr/lib/ruby/1.8/rake.rb:2029:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2029:in `each'
/usr/lib/ruby/1.8/rake.rb:2029:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:2023:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2001:in `run'
/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1998:in `run'