elasticsearch-persistence/spec/repository/store_spec.rb [73:90]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    before(:all) do
      class Note
        def to_hash
          { text: 'testing', views: 0 }
        end
      end
    end

    after(:all) do
      if defined?(Note)
        Object.send(:remove_const, :Note)
      end
    end

    context 'when the document exists' do
      let!(:id) do
        repository.save(Note.new)['_id']
      end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



elasticsearch-persistence/spec/repository/store_spec.rb [248:265]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    before(:all) do
      class Note
        def to_hash
          { text: 'testing', views: 0 }
        end
      end
    end

    after(:all) do
      if defined?(Note)
        Object.send(:remove_const, :Note)
      end
    end

    context 'when the document exists' do
      let!(:id) do
        repository.save(Note.new)['_id']
      end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



