This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit e1959ae7bdd9a54b8d0d0137f6d1986ebd486364
tree 0b45aa8cb9e56c261eb5863d6acd7ea7b4c4fa12
parent 08e1606d3cfa05c2f02649308ef2347cfe8e5c58
tree 0b45aa8cb9e56c261eb5863d6acd7ea7b4c4fa12
parent 08e1606d3cfa05c2f02649308ef2347cfe8e5c58
README
== BeIndexed matcher
BeIndexed matcher is a custom RSpec matcher for RubyOnRails Ultrasphinx
indexation plugin.
Currently only :field and :delta options are supported by the matcher.
Spec examples:
MyModel.should be_indexed
MyModel.should be_indexed.using_fields([:column1, :column2])
MyModel.should be_indexed.with_delta
MyModel.should be_indexed.with_delta(:field => 'last_modified')
MyModel.should be_indexed.using_fields(:column1).with_delta
To used it you need to place the code at vendor/plugins and include
Spec::Ultrasphinx::Matchers the matcher in your specs.
To include the matcher so it can be used in all your specs you can do the
following in your spec_helper.rb:
Spec::Runner.configure do |config|
config.include Spec::Ultrasphinx::Matchers
end
== Thanks
To Andrew Aksyonoff and the Sphinx contributors
(http://www.sphinxsearch.com/) for such a great indexer.
To Evan Weaver (http://blog.evanweaver.com/) for writing such a nice RoR
plugin for Sphinx.
To Fester (http://github.com/fester/) for giving me an example to follow
for writing my first RSpec matcher.
== Author
Fernando Garcia Samblas (fernando.garcia.samblas@gmail.com)








