Rspec throws exception (nameError)

Hi,

I’m running Rails 1.2.5 with rspec 1.0.8.

When i runned autotest first time, it complained about this line.

#include ActionView::Helpers::JavaScriptMacrosHelper
in vendor/plugins/rspec_on_rails/lib/spec/rails/dls/behaviour/helper.rb

…I commented it out, then I got another error about this line, so I
also commented this out.

#Test::Unit.run = true
in vendor/plugins/rspec_on_rails/lib/spec/rails/rails.rb

Now when I run autotest i get third error which i cannot get ride off :frowning:
Please any help I appreciate it…Thanks in advance…


$autotest
1)
NameError in ‘User should be valid’
undefined local variable or method method_name' for [RSpec example]:#<Class:0x189a7b4> /Library/Ruby/Gems/gems/actionpack-1.13.5.7919/lib/action_controller/test_process.rb:470:inmethod_missing’
/Library/Ruby/Gems/gems/activerecord-1.15.5.7919/lib/active_record/fixtures.rb:572:in
use_transactional_fixtures?' /Library/Ruby/Gems/gems/activerecord-1.15.5.7919/lib/active_record/fixtures.rb:585:insetup’
/Users/jamal/Documents/RubyonRailsApps/rspec/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/model.rb:12:in
`before_eval’
script/spec:4:

Finished in 0.016046 seconds

1 example, 1 failure

On 10/29/07, Jamal S. [email protected] wrote:

Hi,

I’m running Rails 1.2.5 with rspec 1.0.8.

RSpec 1.0.8 came out before Rails 1.2.4/1.2.5 or 2.0.0-preview.

If you are using anything newer than Rails 1.2.3, you should use RSpec’s
trunk.

Thanks for help David :slight_smile:

You saved my day :smiley: