Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jdelStrother
Created April 3, 2018 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdelStrother/59a2a5791a84af9df4071e79a9fc5540 to your computer and use it in GitHub Desktop.
Save jdelStrother/59a2a5791a84af9df4071e79a9fc5540 to your computer and use it in GitHub Desktop.
diff --git a/spec/features/indices/channel_index_spec.rb b/spec/features/indices/channel_index_spec.rb
index 4f1bc6c6d6..2b01215980 100644
--- a/spec/features/indices/channel_index_spec.rb
+++ b/spec/features/indices/channel_index_spec.rb
@@ -65,8 +65,12 @@
end
specify "marking a channel for deletion removes it from the index" do
+ clip = channel.audio_clips.sudo_make
expect(Channel.search(nil, retry_stale: false)).to include(channel)
+ expect(AudioClip.search(nil, retry_stale: false)).to include(clip)
channel.mark_for_deletion!
expect(Channel.search(nil, retry_stale: false)).not_to include(channel)
+ expect(AudioClip.search(nil, retry_stale: false)).not_to include(clip)
+ ThinkingSphinx::Connection.take{|c| c.execute("select * from audio_clip_rt_core").each{|a| puts a.inspect}}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment