stevehodgkiss/generator_spec — Issue #5: Error in require
Author: andreacfm
Created: 2011-11-16 10:41:32+00:00
State: open

I am trying to test my generator using the gem but I get this error when generator_spec/test_case is required:

/Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched@global/gems/rspec-rails-2.6.1/lib/rspec/rails/extensions/active_record/base.rb:26:in `': uninitialized constant ActiveModel (NameError)
from /Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched@global/gems/rspec-rails-2.6.1/lib/rspec/rails/extensions.rb:1:in `require'
from /Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched@global/gems/rspec-rails-2.6.1/lib/rspec/rails/extensions.rb:1:in `'
from /Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched@global/gems/rspec-rails-2.6.1/lib/rspec/rails.rb:8:in `require'
from /Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched@global/gems/rspec-rails-2.6.1/lib/rspec/rails.rb:8:in `'
from /Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/generator_spec-0.8.4/lib/generator_spec/test_case.rb:1:in `require'
from /Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/generator_spec-0.8.4/lib/generator_spec/test_case.rb:1:in `'
from /Users/andrea/dev/kemen/virgilio/spec/generators/babel_add_field_generator_spec.rb:1:in `require'
from /Users/andrea/dev/kemen/virgilio/spec/generators/babel_add_field_generator_spec.rb:1:in `'

Any suggestion?