Skip to content
Snippets Groups Projects
Commit f3469cfb authored by Bernd Hentschel's avatar Bernd Hentschel
Browse files

fix petty redundancy uncovered by @hoverath

parent e69f8268
No related branches found
No related tags found
1 merge request!137Feature/#448 resource search path
...@@ -66,7 +66,6 @@ SCENARIO("Resource utils can declarare a file resource.", ...@@ -66,7 +66,6 @@ SCENARIO("Resource utils can declarare a file resource.",
} }
GIVEN("A file name and a search path") { GIVEN("A file name and a search path") {
std::string file_name{"textures/splash_progress.png"}; std::string file_name{"textures/splash_progress.png"};
phx::ResourceUtils::AddResourceSearchPath(phx::resources_root);
THEN( THEN(
"we get a declaration with a valid file name that has been pre-pended " "we get a declaration with a valid file name that has been pre-pended "
...@@ -95,7 +94,6 @@ SCENARIO("Resource utils can load a file resource.", ...@@ -95,7 +94,6 @@ SCENARIO("Resource utils can load a file resource.",
"[phx][phx::ResourceUtils]") { "[phx][phx::ResourceUtils]") {
GIVEN("A file name") { GIVEN("A file name") {
std::string file_name{"textures/splash_progress.png"}; std::string file_name{"textures/splash_progress.png"};
phx::ResourceUtils::AddResourceSearchPath(phx::resources_root);
THEN("It can load it") { THEN("It can load it") {
phx::ResourcePointer<phx::Image> image = phx::ResourcePointer<phx::Image> image =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment