Sha256: 5c93773000ffe30173453e250473eea7bbcd51966f4db3e710063dbabadf94ba

Contents?: true

Size: 1.14 KB

Versions: 51

Compression:

Stored size: 1.14 KB

Contents

acts_as_solr comes with a quick and fast unit test suite, and with a longer-running
functional test suite, the latter testing the actual integration with Solr.

The unit test suite is written using Shoulda, so make sure you have a recent version
installed.

Running `rake test` or just `rake` will run both test suites. Use `rake test:unit` to
just run the unit test suite.
 
== How to run functional tests for this plugin:
To run the acts_as_solr's plugin tests run the following steps:

- create a MySQL database called "actsassolr_test" (if you want to use MySQL)

- create a new Rails project, if needed (the plugin can only be tested from within a Rails project); move/checkout acts_as_solr into its vendor/plugins/, as usual

- copy vendor/plugins/acts_as_solr/config/solr.yml to config/ (the Rails config folder)

- rake solr:start RAILS_ENV=test

- rake test:functional (Accepts the following arguments: DB=sqlite|mysql and MYSQL_USER=user)

== Troubleshooting:
If for some reason the tests don't run and you get MySQL errors, make sure you edit the MYSQL_USER entry under
config/environment.rb. It's recommended to create or use a MySQL user with no password.

Version data entries

51 entries across 51 versions & 9 rubygems

Version Path
honkster-acts_as_solr-0.1.0 TESTING_THE_PLUGIN
honkster-acts_as_solr-0.2.0 TESTING_THE_PLUGIN
honkster-acts_as_solr-0.2.1 TESTING_THE_PLUGIN
honkster-acts_as_solr-0.2.2 TESTING_THE_PLUGIN
honkster-acts_as_solr-0.2.3 TESTING_THE_PLUGIN
honkster-acts_as_solr-0.2.4 TESTING_THE_PLUGIN
honkster-acts_as_solr-0.2.5 TESTING_THE_PLUGIN
honkster-acts_as_solr-0.3.4 TESTING_THE_PLUGIN
jbasdf-acts_as_solr-0.3.3 TESTING_THE_PLUGIN
jbasdf-jbasdf-acts_as_solr-0.4.0 TESTING_THE_PLUGIN
jbasdf-muck-solr-0.4.0 TESTING_THE_PLUGIN
jbasdf-muck-solr-0.4.1 TESTING_THE_PLUGIN
jbasdf-muck-solr-0.4.2 TESTING_THE_PLUGIN
onemorecloud-websolr-rails-1.1.1 TESTING_THE_PLUGIN
onemorecloud-websolr-rails-1.3.3 TESTING_THE_PLUGIN
onemorecloud-websolr-rails-1.4.0 TESTING_THE_PLUGIN
onemorecloud-websolr-rails-1.4.1 TESTING_THE_PLUGIN
acts_as_solr_reloaded-1.6.0 TESTING_THE_PLUGIN
muck-solr-3.0.1 TESTING_THE_PLUGIN
muck-solr-3.0.0 TESTING_THE_PLUGIN