Here's my chance to give back ;)
Make a file called kaminari.rb in /specs/support
Puts this in it:
module Kaminari::ActionViewExtension::InstanceMethods
def paginate(scope, options = {}, &block)
end
end
Make sure this file is loaded in your spec_helper.rb:
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
You should probably have this line already, but check just to be sure.
That should do it.
I don't know a lot about rails, but I actually knew this answer ;)
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.