Created
April 3, 2018 11:23
-
-
Save jdelStrother/59a2a5791a84af9df4071e79a9fc5540 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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