aboutsummaryrefslogtreecommitdiff
path: root/test/controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/controller.cpp')
-rw-r--r--test/controller.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/controller.cpp b/test/controller.cpp
index c1a9785e..fae82e3a 100644
--- a/test/controller.cpp
+++ b/test/controller.cpp
@@ -33,10 +33,10 @@ TEST_CASE("write_item correctly parses path", "[Controller]")
auto cfg = c.get_config();
cfg->set_configvalue("save-path", save_path);
- Cache rsscache(":memory:", *cfg);
+ auto rsscache = Cache::in_memory(*cfg);
- RssItem item(&rsscache);
+ RssItem item(rsscache.get());
item.set_title("title");
const auto description = "First line.\nSecond one.\nAnd finally the third";
item.set_description(description, "text/plain");