[rspec-devel] [ rspec-Bugs-9842 ] Cannot run specs due to fixture error
noreply at rubyforge.org
noreply at rubyforge.org
Wed Apr 11 19:57:51 EDT 2007
Bugs item #9842, was opened at 2007-04-04 14:59
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=9842&group_id=797
Category: rails plugin
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Chad Humphries (spicycode)
Assigned to: Nobody (None)
Summary: Cannot run specs due to fixture error
Initial Comment:
New EdgeRails Project with 0.9.0 RSpec + RSpec On Rails Frozen in vendor/plugins
project_here/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/base.rb:32:in `configure': undefined method `fixtures' for #<Class:0x3a5762c>
The model spec has no reference of fixtures in it, the spec_helper is vanilla/the default, and the app actually contacts no fixtures.
----------------------------------------------------------------------
>Comment By: Chad Humphries (spicycode)
Date: 2007-04-11 19:57
Message:
One other thing of note, this happens on rails 1.2.3, and
edge with the 1.2.3 frozen or as a gem.
No rspec gem is installed (soley used through the
vendor/plugins/rspec provided script/rspec and rake tasks).
It's like none of the testcase methods are available even
though the i can see the inherit method call that should be
providing them.
----------------------------------------------------------------------
Comment By: Chad Humphries (spicycode)
Date: 2007-04-11 17:48
Message:
I'm trying to get a good sample project carved out, or at least a working sample to send over together. I just experienced this again today on two of our other projects when attemping to convert to 0.9.0. They made use of fixtures and they all fail with the same error below. One is on postgres, one mysql, both using Ruby 1.8.6 on OSX.
/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/base.rb:32:in `configure': undefined method `fixtures' for #<Class:0x343f118> (NoMethodError)
from project/vendor/plugins/rspec/lib/spec/dsl/behaviour_eval.rb:46:in `send'
from project/vendor/plugins/rspec/lib/spec/dsl/behaviour_eval.rb:46:in `method_missing'
from project/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:91:in `send'
from project/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:91:in `method_missing'
from project/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/model.rb:12:in `before_eval'
from project/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:25:in `initialize'
from project/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour_factory.rb:36:in `new'
from project/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour_factory.rb:36:in `create'
... 16 levels...
from project/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:236:in `parse'
from project/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:14:in `create_behaviour_runner'
from project/vendor/plugins/rspec/lib/spec/runner/command_line.rb:14:in `run'
from project/vendor/plugins/rspec/bin/spec:3
----------------------------------------------------------------------
Comment By: David Chelimsky (dchelimsky)
Date: 2007-04-04 15:54
Message:
This is really bizarre. I'm able to run model specs w/ no fixtures against 1.8.6 (using multiruby - man, that rocks!) with no problem.
Would you mind terribly zipping up your project and attaching it to this RFE? If you don't want it public, just email it to me directly.
Thanks,
David
----------------------------------------------------------------------
Comment By: Chad Humphries (spicycode)
Date: 2007-04-04 15:38
Message:
~ script/spec spec/models -b
~/test_project/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/base.rb:32:in
`configure': undefined method `fixtures' for
#<Class:0x38af108> (NoMethodError)
from
~/test_project/vendor/plugins/rspec/lib/spec/dsl/behaviour_eval.rb:46:in
`send'
from
~/test_project/vendor/plugins/rspec/lib/spec/dsl/behaviour_eval.rb:46:in
`method_missing'
from
~/test_project/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:91:in
`send'
from
~/test_project/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:91:in
`method_missing'
from
~/test_project/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/model.rb:12:in
`before_eval'
from
~/test_project/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:25:in
`initialize'
from
~/test_project/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour_factory.rb:36:in
`new'
from
~/test_project/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour_factory.rb:36:in
`create'
from
~/test_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/kernel.rb:4:in
`describe'
from ./spec/models/account_spec.rb:3
from
~/test_project/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:81:in
`load'
from
~/test_project/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:81:in
`load_specs'
from
~/test_project/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:80:in
`each'
from
~/test_project/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:80:in
`load_specs'
from
~/test_project/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:22:in
`run'
from
~/test_project/vendor/plugins/rspec/lib/spec/runner/command_line.rb:17:in
`run'
from script/spec:4
----------------------------------------------------------------------
Comment By: David Chelimsky (dchelimsky)
Date: 2007-04-04 15:34
Message:
I haven't installed 1.8.6 and that may be part of the problem on my end. Would you please uncomment the line and run:
script/spec spec/models -b
and show us the backtrace?
Thanks
----------------------------------------------------------------------
Comment By: Chad Humphries (spicycode)
Date: 2007-04-04 15:27
Message:
Commenting out line 32 of spec/rails/dsl/behaviour resolves
it, but not sure why at the moment.
# fixtures global_fixtures if global_fixtures
----------------------------------------------------------------------
Comment By: Chad Humphries (spicycode)
Date: 2007-04-04 15:24
Message:
- OSX 10.4.9 (Intel)
- Ruby 1.8.6
- EdgeRails
- Rspec/RspecOnRails/SpecUi 0.9.0 as a svn:external plugin
Running the spec using either script/spec
spec/models/model_spec.rb or via rake spec/rake spec:models
----------------------------------------------------------------------
Comment By: David Chelimsky (dchelimsky)
Date: 2007-04-04 15:17
Message:
how are you running the example? what command? from what directory? on what platform?
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=9842&group_id=797
More information about the rspec-devel
mailing list