fix saved search test

This commit is contained in:
Albert Yi
2016-10-10 17:29:49 -07:00
parent bf4397cbe4
commit d5f02abf8c
2 changed files with 6 additions and 4 deletions

View File

@@ -2,8 +2,8 @@
-- PostgreSQL database dump -- PostgreSQL database dump
-- --
-- Dumped from database version 9.5.1 -- Dumped from database version 9.5.4
-- Dumped by pg_dump version 9.5.1 -- Dumped by pg_dump version 9.5.4
SET statement_timeout = 0; SET statement_timeout = 0;
SET lock_timeout = 0; SET lock_timeout = 0;

View File

@@ -10,7 +10,8 @@ class SavedSearchTest < ActiveSupport::TestCase
context "with a name" do context "with a name" do
should "return a list of ids" do should "return a list of ids" do
VCR.use_cassette("saved_search-test/get-named", :record => :none) do MEMCACHE.expects(:get).returns(nil)
VCR.use_cassette("saved-search-test/get-named", :record => :none) do
post_ids = SavedSearch.post_ids(1, "blah") post_ids = SavedSearch.post_ids(1, "blah")
assert_equal([1,2,3,4], post_ids) assert_equal([1,2,3,4], post_ids)
end end
@@ -19,7 +20,8 @@ class SavedSearchTest < ActiveSupport::TestCase
context "without a name" do context "without a name" do
should "return a list of ids" do should "return a list of ids" do
VCR.use_cassette("saved_search-test/get-unnamed", :record => :none) do MEMCACHE.expects(:get).returns(nil)
VCR.use_cassette("saved-search-test/get-unnamed", :record => :none) do
post_ids = SavedSearch.post_ids(1) post_ids = SavedSearch.post_ids(1)
assert_equal([1,2,3,4], post_ids) assert_equal([1,2,3,4], post_ids)
end end