Just ran svn up this morning, and got this (after running ./script/ generate rspec) escher: ./script/spec spec/models/item_spec.rb Finished in 8.0e-06 seconds 0 examples, 0 failures ./script/spec:4:in `run'': wrong number of arguments (3 for 1) (ArgumentError) from ./script/spec:4 Using rails 1.2.3, rspec trunk, on Mac OS X.4.9. Any ideas, or is this a bug in refactoring/with rspec? Scott
On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote:> > Just ran svn up this morning, and got this (after running ./script/ > generate rspec) > > escher: ./script/spec spec/models/item_spec.rb > > > Finished in 8.0e-06 seconds > > 0 examples, 0 failures > ./script/spec:4:in `run'': wrong number of arguments (3 for 1) > (ArgumentError) > from ./script/spec:4 > > > Using rails 1.2.3, rspec trunk, on Mac OS X.4.9. > > Any ideas, or is this a bug in refactoring/with rspec? > > Scott > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-usersI should also say, that I replaced all of the default files (spec_helper, spec.opts), and I''m still getting this failure. Any other information needed to debug this? Scott
On 10/8/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:> > On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote: > > > > > Just ran svn up this morning, and got this (after running ./script/ > > generate rspec) > > > > escher: ./script/spec spec/models/item_spec.rb > > > > > > Finished in 8.0e-06 seconds > > > > 0 examples, 0 failures > > ./script/spec:4:in `run'': wrong number of arguments (3 for 1) > > (ArgumentError) > > from ./script/spec:4 > > > > > > Using rails 1.2.3, rspec trunk, on Mac OS X.4.9. > > > > Any ideas, or is this a bug in refactoring/with rspec? > > > > Scott > > > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > I should also say, that I replaced all of the default files > (spec_helper, spec.opts), and I''m still getting this failure. > > Any other information needed to debug this?Did you replace script/spec and script/spec_server too?> > Scott > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Oct 8, 2007, at 11:21 AM, David Chelimsky wrote:> On 10/8/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: >> >> On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote: >> >>> >>> Just ran svn up this morning, and got this (after running ./script/ >>> generate rspec) >>> >>> escher: ./script/spec spec/models/item_spec.rb >>> >>> >>> Finished in 8.0e-06 seconds >>> >>> 0 examples, 0 failures >>> ./script/spec:4:in `run'': wrong number of arguments (3 for 1) >>> (ArgumentError) >>> from ./script/spec:4 >>> >>> >>> Using rails 1.2.3, rspec trunk, on Mac OS X.4.9. >>> >>> Any ideas, or is this a bug in refactoring/with rspec? >>> >>> Scott >>> >>> _______________________________________________ >>> rspec-users mailing list >>> rspec-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rspec-users >> >> I should also say, that I replaced all of the default files >> (spec_helper, spec.opts), and I''m still getting this failure. >> >> Any other information needed to debug this? > > Did you replace script/spec and script/spec_server too?Yep, replaced both (actually, replaced all of the files that were prompted for. Scott
On 10/8/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:> > On Oct 8, 2007, at 11:21 AM, David Chelimsky wrote: > > > On 10/8/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: > >> > >> On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote: > >> > >>> > >>> Just ran svn up this morning, and got this (after running ./script/ > >>> generate rspec) > >>> > >>> escher: ./script/spec spec/models/item_spec.rb > >>> > >>> > >>> Finished in 8.0e-06 seconds > >>> > >>> 0 examples, 0 failures > >>> ./script/spec:4:in `run'': wrong number of arguments (3 for 1) > >>> (ArgumentError) > >>> from ./script/spec:4 > >>> > >>> > >>> Using rails 1.2.3, rspec trunk, on Mac OS X.4.9. > >>> > >>> Any ideas, or is this a bug in refactoring/with rspec? > >>> > >>> Scott > >>> > >>> _______________________________________________ > >>> rspec-users mailing list > >>> rspec-users at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/rspec-users > >> > >> I should also say, that I replaced all of the default files > >> (spec_helper, spec.opts), and I''m still getting this failure. > >> > >> Any other information needed to debug this? > > > > Did you replace script/spec and script/spec_server too? > > Yep, replaced both (actually, replaced all of the files that were > prompted for.OK - I''ve been able to duplicate - will have a fix shortly - is related to the refactoring. Cheers, David> > Scott > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Oct 8, 2007, at 11:38 AM, David Chelimsky wrote:> On 10/8/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: >> >> On Oct 8, 2007, at 11:21 AM, David Chelimsky wrote: >> >>> On 10/8/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: >>>> >>>> On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote: >>>> >>>>> >>>>> Just ran svn up this morning, and got this (after running ./ >>>>> script/ >>>>> generate rspec) >>>>> >>>>> escher: ./script/spec spec/models/item_spec.rb >>>>> >>>>> >>>>> Finished in 8.0e-06 seconds >>>>> >>>>> 0 examples, 0 failures >>>>> ./script/spec:4:in `run'': wrong number of arguments (3 for 1) >>>>> (ArgumentError) >>>>> from ./script/spec:4 >>>>> >>>>> >>>>> Using rails 1.2.3, rspec trunk, on Mac OS X.4.9. >>>>> >>>>> Any ideas, or is this a bug in refactoring/with rspec? >>>>> >>>>> Scott >>>>> >>>>> _______________________________________________ >>>>> rspec-users mailing list >>>>> rspec-users at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/rspec-users >>>> >>>> I should also say, that I replaced all of the default files >>>> (spec_helper, spec.opts), and I''m still getting this failure. >>>> >>>> Any other information needed to debug this? >>> >>> Did you replace script/spec and script/spec_server too? >> >> Yep, replaced both (actually, replaced all of the files that were >> prompted for. > > OK - I''ve been able to duplicate - will have a fix shortly - is > related to the refactoring. > > Cheers, > DavidThanks for your quick response. Can you post back to the mailing list when it is done? Scott
On 10/8/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:> > On Oct 8, 2007, at 11:38 AM, David Chelimsky wrote: > > > On 10/8/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: > >> > >> On Oct 8, 2007, at 11:21 AM, David Chelimsky wrote: > >> > >>> On 10/8/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: > >>>> > >>>> On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote: > >>>> > >>>>> > >>>>> Just ran svn up this morning, and got this (after running ./ > >>>>> script/ > >>>>> generate rspec) > >>>>> > >>>>> escher: ./script/spec spec/models/item_spec.rb > >>>>> > >>>>> > >>>>> Finished in 8.0e-06 seconds > >>>>> > >>>>> 0 examples, 0 failures > >>>>> ./script/spec:4:in `run'': wrong number of arguments (3 for 1) > >>>>> (ArgumentError) > >>>>> from ./script/spec:4 > >>>>> > >>>>> > >>>>> Using rails 1.2.3, rspec trunk, on Mac OS X.4.9. > >>>>> > >>>>> Any ideas, or is this a bug in refactoring/with rspec? > >>>>> > >>>>> Scott > >>>>> > >>>>> _______________________________________________ > >>>>> rspec-users mailing list > >>>>> rspec-users at rubyforge.org > >>>>> http://rubyforge.org/mailman/listinfo/rspec-users > >>>> > >>>> I should also say, that I replaced all of the default files > >>>> (spec_helper, spec.opts), and I''m still getting this failure. > >>>> > >>>> Any other information needed to debug this? > >>> > >>> Did you replace script/spec and script/spec_server too? > >> > >> Yep, replaced both (actually, replaced all of the files that were > >> prompted for. > > > > OK - I''ve been able to duplicate - will have a fix shortly - is > > related to the refactoring. > > > > Cheers, > > David > > > Thanks for your quick response. Can you post back to the mailing > list when it is done?Will do.> > Scott > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On 10/8/07, David Chelimsky <dchelimsky at gmail.com> wrote:> On 10/8/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: > > > > On Oct 8, 2007, at 11:38 AM, David Chelimsky wrote: > > > > > On 10/8/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: > > >> > > >> On Oct 8, 2007, at 11:21 AM, David Chelimsky wrote: > > >> > > >>> On 10/8/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: > > >>>> > > >>>> On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote: > > >>>> > > >>>>> > > >>>>> Just ran svn up this morning, and got this (after running ./ > > >>>>> script/ > > >>>>> generate rspec) > > >>>>> > > >>>>> escher: ./script/spec spec/models/item_spec.rb > > >>>>> > > >>>>> > > >>>>> Finished in 8.0e-06 seconds > > >>>>> > > >>>>> 0 examples, 0 failures > > >>>>> ./script/spec:4:in `run'': wrong number of arguments (3 for 1) > > >>>>> (ArgumentError) > > >>>>> from ./script/spec:4 > > >>>>> > > >>>>> > > >>>>> Using rails 1.2.3, rspec trunk, on Mac OS X.4.9. > > >>>>> > > >>>>> Any ideas, or is this a bug in refactoring/with rspec? > > >>>>> > > >>>>> Scott > > >>>>> > > >>>>> _______________________________________________ > > >>>>> rspec-users mailing list > > >>>>> rspec-users at rubyforge.org > > >>>>> http://rubyforge.org/mailman/listinfo/rspec-users > > >>>> > > >>>> I should also say, that I replaced all of the default files > > >>>> (spec_helper, spec.opts), and I''m still getting this failure. > > >>>> > > >>>> Any other information needed to debug this? > > >>> > > >>> Did you replace script/spec and script/spec_server too? > > >> > > >> Yep, replaced both (actually, replaced all of the files that were > > >> prompted for. > > > > > > OK - I''ve been able to duplicate - will have a fix shortly - is > > > related to the refactoring. > > > > > > Cheers, > > > David > > > > > > Thanks for your quick response. Can you post back to the mailing > > list when it is done? > > Will do.I''ve got more work to do, but this problem is solved and committed. You should be able to svn up, script/generate rspec, and be off and running. Cheers, David> > > > > Scott > > > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > >
On 8 Oct 2007, at 17:26, David Chelimsky wrote:> On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote: >> escher: ./script/spec spec/models/item_spec.rb >> >> Finished in 8.0e-06 seconds >> >> 0 examples, 0 failures >> ./script/spec:4:in `run'': wrong number of arguments (3 for 1) >> (ArgumentError) >> from ./script/spec:4 > I''ve got more work to do, but this problem is solved and committed. > You should be able to svn up, script/generate rspec, and be off and > running.I didn''t see this ''wrong number of arguments'' problem, but I''m getting something similar in autotest: tom:~/code$ autotest loading autotest/rails_rspec/usr/local/bin/ruby -S script/spec -O spec/spec.opts [...] Finished in 3.768694 seconds 522 examples, 0 failures, 23 pending Finished in 1.0e-05 seconds 0 examples, 0 failures The second "Finished in.." is repeated every time specs are rerun, and it''s always 0/0/green (even when there are failures), which naturally is messing with my mojo a little, not to mention my Growl notifications. Everything''s up to date (RSpec trunk, ZenTest 3.6.1, just did script/generate rspec). Is this problem related to Scott''s? Cheers, -Tom
On 10/8/07, Tom Stuart <tom at experthuman.com> wrote:> On 8 Oct 2007, at 17:26, David Chelimsky wrote: > > On Oct 8, 2007, at 11:14 AM, Scott Taylor wrote: > >> escher: ./script/spec spec/models/item_spec.rb > >> > >> Finished in 8.0e-06 seconds > >> > >> 0 examples, 0 failures > >> ./script/spec:4:in `run'': wrong number of arguments (3 for 1) > >> (ArgumentError) > >> from ./script/spec:4 > > I''ve got more work to do, but this problem is solved and committed. > > You should be able to svn up, script/generate rspec, and be off and > > running. > > I didn''t see this ''wrong number of arguments'' problem, but I''m > getting something similar in autotest: > > tom:~/code$ autotest > loading autotest/rails_rspec/usr/local/bin/ruby -S script/spec -O > spec/spec.opts [...] > > Finished in 3.768694 seconds > > 522 examples, 0 failures, 23 pending > > > Finished in 1.0e-05 seconds > > 0 examples, 0 failuresWe are in the middle of a refactoring right now and this is a known bug (within the folks working on it). What you can do to eliminate this is go to vendor/plugins/rspec/lib/spec.rb and remove the following lines (at the end): at_exit do unless rspec_options.examples_run?; exit rspec_options.run_examples; end end We can''t just remove them right now because that causes other problems, however those other problems shouldn''t affect normal usage in a rails app.> > The second "Finished in.." is repeated every time specs are rerun, > and it''s always 0/0/green (even when there are failures), which > naturally is messing with my mojo a little, not to mention my Growl > notifications. Everything''s up to date (RSpec trunk, ZenTest 3.6.1, > just did script/generate rspec). Is this problem related to Scott''s? > > Cheers, > -Tom > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On 8 Oct 2007, at 18:29, David Chelimsky wrote:> What you can do to eliminate this is go to > vendor/plugins/rspec/lib/spec.rb and remove the following lines (at > the end):Great, thanks very much -- this is more than good enough for now. (It works fine.) Cheers, -Tom
I am getting this same error when I run autotest. My system specs Rails v7945 Rspec Version 1.1.0 (in SVN) OS 10.4.10 -- Posted via http://www.ruby-forum.com/.
On 10/16/07, Steven Garcia <lists at ruby-forum.com> wrote:> I am getting this same error when I run autotest.There are a few errors cited in this thread. Which one do you mean?> > My system specs > > Rails v7945 > Rspec Version 1.1.0 (in SVN) > OS 10.4.10
@post.should_be more_specific script/spec:4:in `run'': wrong number of arguments (5 for 1) (ArgumentError) -- Posted via http://www.ruby-forum.com/.
I just unfroze my app and am getting the same error. Gonna reinstall a stable rspec to make sure that the trunk is really the issue -- Posted via http://www.ruby-forum.com/.
On 10/16/07, Steven Garcia <lists at ruby-forum.com> wrote:> @post.should_be more_specific > > script/spec:4:in `run'': wrong number of arguments (5 for 1) > (ArgumentError)http://rspec.rubyforge.org/documentation/rails/install.html script/generate rspec You need to do that every time you update vendor/plugins/rspec and vendor/plugins/rspec_on_rails Cheers, David
On 10/16/07, Steven Garcia <lists at ruby-forum.com> wrote:> I just unfroze my app and am getting the same error. > > Gonna reinstall a stable rspec to make sure that the trunk is really the > issueTry script/generate rspec first :)
Ahh I didnt know I had to run that again after upgrading. I am getting a different error now..seems like its more of a Rails issue though: /Sites/test_appvendor/rails/railties/lib/../../activesupport/lib/active_support/dependencies.rb:266:in `load_missing_constant'': uninitialized constant ActiveRecordMatchers (NameError) from /Sites/test_appvendor/rails/railties/lib/../../activesupport/lib/active_support/dependencies.rb:453:in `const_missing'' from /Sites/test_appvendor/rails/railties/lib/../../activesupport/lib/active_support/dependencies.rb:465:in `const_missing_before_generators'' from /Sites/test_appvendor/rails/railties/lib/rails_generator/lookup.rb:13:in `const_missing'' from ./spec/models/authenticated_base_spec.rb:4 from /Sites/test_appvendor/plugins/rspec/lib/spec/dsl/behaviour.rb:10:in `module_eval'' from /Sites/test_appvendor/plugins/rspec/lib/spec/dsl/behaviour.rb:10:in `describe'' from /Sites/test_appvendor/plugins/rspec/lib/spec/dsl/behaviour_factory.rb:49:in `create'' from /Sites/test_appvendor/plugins/rspec/lib/spec/extensions/main.rb:27:in `describe'' ... 6 levels... from /Sites/test_appvendor/plugins/rspec/lib/spec/runner/options.rb:185:in `each'' from /Sites/test_appvendor/plugins/rspec/lib/spec/runner/options.rb:185:in `load_paths'' from /Sites/test_appvendor/plugins/rspec/lib/spec/runner/command_line.rb:21:in `run'' from script/spec:4 -- Posted via http://www.ruby-forum.com/.