Perhaps one of the other scripts that you are running in the same ruby process has already mocked or stubbed the Capistrano::Configuration class.
On Aug 7, 2012, at 12:55 AM, Senthil Kumaran <[email protected]> wrote: > Here is my simple test code which is similar to capistrano tests, but I am > running it on with extension recipes - http://uthcode.codepad.org/tiKrAZKZ > This when I run it on command like it works, > > ruby test_build.rb > Loaded suite test_build > Started > . > Finished in 0.012566 seconds. > > 1 tests, 1 assertions, 0 failures, 0 errors > > But if I invoke it via along with bunch of other scripts, I get an error > something like this > > 1) Error: > test_build(BuildTest): > NoMethodError: undefined method `dry_run=' for nil:NilClass > ./test_build.rb:13:in `test_build' > > /opt/twitter/rvm/gems/ree-1.8.7-2012.02@default/gems/mocha-0.12.2/lib/mocha/monkey_patching/test_unit/ruby_version_186_and_above.rb:22:in > `__send__' > > /opt/twitter/rvm/gems/ree-1.8.7-2012.02@default/gems/mocha-0.12.2/lib/mocha/monkey_patching/test_unit/ruby_version_186_and_above.rb:22:in > `run' > > > What could be the problem and how do I resolve it? > > Thanks, > Senthil > > -- > * You received this message because you are subscribed to the Google Groups > "Capistrano" 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/capistrano?hl=en -- * You received this message because you are subscribed to the Google Groups "Capistrano" 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/capistrano?hl=en
