[rspec-users] RSpec

Omen King omen.king at gmail.com
Sat May 26 11:43:10 EDT 2007


ActiveRecordMatchers does exist as a file called rpspec_extensions in my
lib.
I want to update this sample app to Respec 1.0

I original error still persist. I have rspec installed as a plugin.



On 5/26/07, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
>
> On 5/26/07, Omen King <omen.king at gmail.com> wrote:
> > Hi RSpec Mailing list,
> >
> > I'm new to RSpec and I am trying to get it running with the caboo.sesample
> > rails app.
> > I installed the current version of rspec with rspec_on_rails
> >
> >  I tried to run rake spec but received:
> >
> > 330-07:~/desktop/restful_auth_rspec/vendor multimedia$ rake
> > spec
> > (in /Users/multimedia/Desktop/restful_auth_rspec)
> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2
> /lib/active_support/dependencies.rb:266:in
> > `load_missing_constant': uninitialized constant ActiveRecordMatchers
>
> This is Ruby telling you it can't find the class or module
> ActiveRecordMatchers.
>
> IIRC this is something that lives in a third party plugin. Google for
> ActiveRecordMatchers and install it. (It *should* be automatically
> installed as an svn:external though)
>
> It also looks like the Caboose app was last updated in april, so it
> might not be uptodate with RSpec 1.0 - I'm assuming you're using this:
> http://sample.caboo.se/empty_rails_app/
>
> HTH,
> Aslak
>
> > (NameError)
> >         from
> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2
> /lib/active_support/dependencies.rb:452:in
> > `const_missing'
> >         from
> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2
> /lib/active_support/dependencies.rb:464:in
> > `const_missing'
> >         from ./spec/models/authenticated_base_spec.rb:4
> >         from
> >
> /Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:49:in
> > `class_eval'
> >         from
> >
> /Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:49:in
> > `eval_behaviour'
> >         from
> >
> /Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:30:in
> > `initialize'
> >         from
> >
> /Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/lib/spec/dsl/behaviour_factory.rb:36:in
> > `new'
> >         from
> >
> /Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/lib/spec/dsl/behaviour_factory.rb:36:in
> > `create'
> >          ... 21 levels...
> >         from
> >
> /Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:154:in
> > `parse'
> >         from
> >
> /Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:88:in
> > `create_behaviour_runner'
> >         from
> >
> /Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/lib/spec/runner/command_line.rb:14:in
> > `run'
> >         from
> >
> /Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/bin/spec:3
> > rake aborted!
> > Command ruby
> >
> -I"/Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/lib"
> >
> "/Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/bin/spec"
> > "spec/controllers/session_controller_spec.rb"
> > "spec/controllers/user_assets_controller_spec.rb"
> > "spec/controllers/users_controller_spec.rb"
> > "spec/helpers/user_assets_helper_spec.rb"
> > "spec/helpers/user_assets_url_helpers_spec.rb"
> > "spec/models/asset_spec.rb"
> > "spec/models/authenticated_base_spec.rb"
> > "spec/models/user_spec.rb"
> > "spec/views/assets/edit_rhtml_spec.rb"
> > "spec/views/assets/index_rhtml_spec.rb"
> > "spec/views/assets/new_rhtml_spec.rb"
> > "spec/views/assets/show_rhtml_spec.rb"
> > "spec/views/users/edit_rhtml_spec.rb"
> > "spec/views/users/index_rhtml_spec.rb"
> > "spec/views/users/new_rhtml_spec.rb"
> > "spec/views/users/show_rhtml_spec.rb" --options
> > "/Users/multimedia/Desktop/restful_auth_rspec/config/../spec/spec.opts"
> >  failed
> >
> > (See full trace by running task with --trace)
> >
> > So I thought installing the trunk version of rails would resolve it but
> I
> > got:
> >
> > 330-07:~/desktop/restful_auth_rspec multimedia$ rake spec
> > (in /Users/multimedia/Desktop/restful_auth_rspec)
> >
> /Users/multimedia/Desktop/restful_auth_rspec/config/../vendor/plugins/trunk/railties/lib/dispatcher.rb:90:
> > undefined method `attr_accessor_with_default' for #<Class:Dispatcher>
> > (NoMethodError)
> >         from
> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> > `gem_original_require'
> >         from
> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> > `require'
> >         from
> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2
> /lib/active_support/dependencies.rb:495:in
> > `require'
> >         from
> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2
> /lib/active_support/dependencies.rb:342:in
> > `new_constants_in'
> >         from
> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2
> /lib/active_support/dependencies.rb:495:in
> > `require'
> >         from
> >
> /Users/multimedia/Desktop/restful_auth_rspec/config/../vendor/plugins/trunk/actionpack/lib/action_controller/integration.rb:1
> >         from
> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> > `gem_original_require'
> >         from
> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> > `require'
> >          ... 29 levels...
> >         from
> >
> /Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:154:in
> > `parse'
> >         from
> >
> /Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:88:in
> > `create_behaviour_runner'
> >         from
> >
> /Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/lib/spec/runner/command_line.rb:14:in
> > `run'
> >         from
> >
> /Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/bin/spec:3
> > rake aborted!
> > Command ruby
> >
> -I"/Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/lib"
> >
> "/Users/multimedia/Desktop/restful_auth_rspec/vendor/plugins/rspec/bin/spec"
> > "spec/controllers/session_controller_spec.rb"
> > "spec/controllers/user_assets_controller_spec.rb"
> > "spec/controllers/users_controller_spec.rb"
> > "spec/helpers/user_assets_helper_spec.rb"
> > "spec/helpers/user_assets_url_helpers_spec.rb"
> > "spec/models/asset_spec.rb"
> > "spec/models/authenticated_base_spec.rb"
> > "spec/models/user_spec.rb"
> > "spec/views/assets/edit_rhtml_spec.rb"
> > "spec/views/assets/index_rhtml_spec.rb"
> > "spec/views/assets/new_rhtml_spec.rb"
> > "spec/views/assets/show_rhtml_spec.rb"
> > "spec/views/users/edit_rhtml_spec.rb"
> > "spec/views/users/index_rhtml_spec.rb"
> > "spec/views/users/new_rhtml_spec.rb"
> > "spec/views/users/show_rhtml_spec.rb" --options
> > "/Users/multimedia/Desktop/restful_auth_rspec/config/../spec/spec.opts"
> >  failed
> >
> > Any idea how to resolve this?
> >
> >
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070526/e807900b/attachment.html 


More information about the rspec-users mailing list