[rspec-users] Error when mocking a method in a class
lists at ruby-forum.com
Tue Dec 30 05:24:47 EST 2008
Josh Knowles wrote:
>There are forks out on github which have specs and have
> fixed the problem with validate_uniqueness_of.
I have test a plugin with that fixed (from negonicrac) and it still has
the same problem for me.
I see that this plugin already has specs, and want to try them.
But I don't know how to run specs in a plugin.
I use rake spec:plugins but fails
jmcervera at jmcervera-laptop:~/aaa/vendor$ rake spec:plugins
`require': no such file to load -- activerecord (LoadError)
(See full trace by running task with --trace)
this is the spec_helper.rb file that is failing in line 2
'/../lib/spec/rails/matchers/*.rb').each do |f|
How should I require 'activerecord'?
Or how I have to do the setup for testing/specing plugins?
Any URL for that?
Posted via http://www.ruby-forum.com/.
More information about the rspec-users