Skip to content

Instantly share code, notes, and snippets.

@simonmorley
Last active August 29, 2015 13:57
Show Gist options
  • Save simonmorley/9410506 to your computer and use it in GitHub Desktop.
Save simonmorley/9410506 to your computer and use it in GitHub Desktop.
describe "elastic search" do
let (:fw) {create :firmware}
before(:all) do ## SOMETIMES BEFORE EACH ##
Nas.index.delete
Nas.create_elasticsearch_index
end
it "should output nice json for nas session search" do
nas = create(:nas, location_id: @location.id)
create(:accounting, username: 'simons')
Nas.index.import Nas.all
sleep 1
do some tests ...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment