Big thanks to the merb team for releasing merb 1.1. I have begun the task of 
converting an older merb app to the latest and greatest, and thanks to the 
handy emails on the list it's been fairly straightforward process. The app is 
now passing a smoke test, but I haven't been able to run our spec suite and was 
hoping someone could point me in the right direction.

First off, we used to have a bin/spec script, but I moved the old bin/ 
directory to old-bin/ and now just have the single bin/merb file that comes 
with the default merb 1.1 app. As such, I'm not 100% sure of how to run my spec 
tests, so I've tried both of these with identical results:

spec spec/model/wrapper_spec.rb
bundle exec spec spec/model/wrapper_spec.rb

In either case I get the following:

==================================
DEPRECATED: Use bundler to setup and load dependency activerecord.
/home/niles/.bundle/ruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:440:in
 `load_missing_constant': uninitialized constant Merb::Test::ViewHelper 
(NameError)
        from 
/home/niles/.bundle/ruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in
 `const_missing'
        from /home/niles/trilogy/dev/amps/spec/spec_helper.rb:25
        from /usr/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner.rb:41:in 
`configure'
        from /home/niles/trilogy/dev/amps/spec/spec_helper.rb:24
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in 
`gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in 
`require'
        from ./spec/models/wrapper_spec.rb:1
        from 
/usr/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in
 `load'
        from 
/usr/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in
 `load_files'
        from 
/usr/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in
 `each'
        from 
/usr/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in
 `load_files'
        from 
/usr/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/options.rb:133:in 
`run_examples'
        from 
/usr/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/command_line.rb:9:in 
`run'
        from /usr/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/spec:5
        from /usr/bin/spec:19:in `load'
        from /usr/bin/spec:19
==================================

Now, the only line of code in that stack trace that is mine is the 
spec_helper.rb, but I've modified it to be exactly like the spec_helper.rb from 
the starter merb app. The particular line is...

  config.include(Merb::Test::ViewHelper)

My Gemfile isn't anything special... just the default stuff with the 
data_mapper/data_object items remove and the following additions --

===================================
gem "activerecord", "2.3.4"
gem "activesupport", "2.3.4"
gem "merb_activerecord", "1.0.0.1"

gem "image_science", "1.1.3"
gem "rubyzip", "0.9.1"
gem "liquid"

gem "rspec"
gem "machinist"
gem "faker"
===================================

Obviously the deprecation warning is interesting... but I sure don't know 
what's triggering it. The old dependency.rb file has been removed, and the 
init.rb file doesn't include activerecord.

Anyone have suggestions... places I should investigate... anything?

Thanks,
Sean

-- 
Sean Kellogg
e: [email protected]

-- 
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.

Reply via email to