Skip to content

Instantly share code, notes, and snippets.

View Swimminschrage's full-sized avatar

Andy Schrage Swimminschrage

  • Seattle, WA
View GitHub Profile
@Swimminschrage
Swimminschrage / neo4j_adapter_spec.rb
Created April 24, 2015 23:23
rspec test that uses neo4j_test_server
require 'spec_helper'
#NOTE: The models found in this spec can be located in the associated dummy Rails app under "spec/dummy"
describe 'Sunspot' do
describe '::Neo4j', neo4j: true do
shared_examples 'a searchable Neo4j model' do
before(:each) do
Recipe.destroy_all
require 'sunspot'
require 'sunspot/rails'
# == Examples:
#
# class Post
# include Neo4j::ActiveNode
# field :title
#
# include Sunspot::Neo4j