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