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 T. wrote:
./script/spec:4:in `run’: wrong number of arguments (3 for 1)
rspec-users mailing list
[email protected]
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?
Scott
On 10/8/07, Scott T. [email protected] wrote:
Finished in 8.0e-06 seconds
Any other information needed to debug this?
Did you replace script/spec and script/spec_server too?
On 10/8/07, Scott T. [email protected] wrote:
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
On Oct 8, 2007, at 11:38 AM, David C. wrote:
script/
from ./script/spec:4
[email protected]
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?
Scott
On Oct 8, 2007, at 11:21 AM, David C. wrote:
Any ideas, or is this a bug in refactoring/with rspec?
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 T. [email protected] wrote:
0 examples, 0 failures
Did you replace script/spec and script/spec_server too?
Thanks for your quick response. Can you post back to the mailing
list when it is done?
Will do.
On 10/8/07, David C. [email protected] wrote:
On Oct 8, 2007, at 11:14 AM, Scott T. wrote:
Scott
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
On 8 Oct 2007, at 17:26, David C. wrote:
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 S. [email protected] wrote:
I’ve got more work to do, but this problem is solved and committed.
Finished in 3.768694 seconds
522 examples, 0 failures, 23 pending
Finished in 1.0e-05 seconds
0 examples, 0 failures
We 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.
sthorpe
October 16, 2007, 10:56pm
11
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
On 8 Oct 2007, at 18:29, David C. 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
sthorpe
October 16, 2007, 11:23pm
13
@post.should_be more_specific
script/spec:4:in `run’: wrong number of arguments (5 for 1)
(ArgumentError)
sthorpe
October 16, 2007, 11:13pm
14
On 10/16/07, Steven G. [email protected] 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?
sthorpe
October 16, 2007, 11:27pm
15
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
sthorpe
October 16, 2007, 11:31pm
16
On 10/16/07, Steven G. [email protected] 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
issue
Try script/generate rspec first
sthorpe
October 17, 2007, 12:30am
17
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
sthorpe
October 16, 2007, 11:29pm
18
On 10/16/07, Steven G. [email protected] 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