Topic: Using flexmock...

I'm trying to get started using the flexmock gem.  I've run "sudo gem install flexmock".  It ran successfully and I can naviage to the installed gem at "/usr/local/lib/ruby/gems/1.8/gems/flexmock-0.4.3".  However "require 'flexmock'" as shown in the examples fails with a

test_event_list_editor.rb:5:in `require': no such file to load -- flexmock (LoadError)
        from ./test/unit/controller/test_event_list_editor.rb:5
        from ./test/unit/controller/test_all_controllers.rb:3
        from test/unit/test_all_units.rb:3

error message.  Do I need to set anything like a classpath?

Last edited by NielsenE (2006-10-29 21:17:46)

My RoR journey  -- thoughts on learning RoR and lessons learned in applying TDD and agile practices.

Re: Using flexmock...

Hmm, ok, ran "sudo ruby install.rb" from the installed gem directory and now it seems to work.  Shouldn't the gem install do that?

My RoR journey  -- thoughts on learning RoR and lessons learned in applying TDD and agile practices.