Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Commit

Permalink
fixup! Test cache::{externalize,internalize}_rssfeed
Browse files Browse the repository at this point in the history
  • Loading branch information
Minoru committed Oct 22, 2016
1 parent f482e6a commit 316ff53
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -665,3 +665,14 @@ TEST_CASE("{externalize,internalize}_rssfeed puts a feed into DB and gets it bac
REQUIRE(new_feed->total_item_count() == 3);
}
}

TEST_CASE("internalize_rssfeed returns feed without items but specified RSS URL") {
rss_ignores ign;
configcontainer cfg;
cache rsscache(":memory:", &cfg);
auto feedurl = "query:misc:age between 0:10";
auto feed = rsscache.internalize_rssfeed(feedurl, &ign);

REQUIRE(feed->total_item_count() == 0);
REQUIRE(feed->rssurl() == feedurl);
}

0 comments on commit 316ff53

Please sign in to comment.