Skip to content

Instantly share code, notes, and snippets.

@mkcode
Created November 17, 2015 23:11
Show Gist options
  • Save mkcode/eb7dcdb161643b1dd770 to your computer and use it in GitHub Desktop.
Save mkcode/eb7dcdb161643b1dd770 to your computer and use it in GitHub Desktop.
if Rails.env.test?
# Setup test indexes with 'test' prefix and run synchronously by waiting for index updates
Chewy.settings = Chewy.settings.reverse_merge(
prefix: 'test',
wait_for_status: 'yellow'
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment