Skip to content

Commit

Permalink
renamed seeder classes to singular
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed May 17, 2022
1 parent 48947bf commit cf8f3e6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tests/database/seeders.pri
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ INCLUDEPATH += $$PWD

HEADERS += \
$$PWD/seeders/databaseseeder.hpp \
$$PWD/seeders/phonesseeder.hpp \
$$PWD/seeders/propertiesseeder.hpp \
$$PWD/seeders/phoneseeder.hpp \
$$PWD/seeders/propertyseeder.hpp \
6 changes: 3 additions & 3 deletions tests/database/seeders/databaseseeder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include <tom/seeder.hpp>

#include "seeders/phonesseeder.hpp"
#include "seeders/propertiesseeder.hpp"
#include "seeders/phoneseeder.hpp"
#include "seeders/propertyseeder.hpp"

/* This class serves as a showcase, so all possible features are defined / used. */

Expand All @@ -21,7 +21,7 @@ namespace Seeders
{{"name", "2. post"}, {"factor", 20}},
});

call<PhonesSeeder, PropertiesSeeder>();
call<PhoneSeeder, PropertySeeder>();

// You can also pass arguments to the call() related methods
// callWith<UsersSeeder>(shouldSeedPasswd);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace Models
namespace Seeders
{

struct PhonesSeeder : public Seeder
struct PhoneSeeder : public Seeder
{
/*! Run the database seeders. */
void run() override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Seeders
{

struct PropertiesSeeder : public Seeder
struct PropertySeeder : public Seeder
{
/*! Run the database seeders. */
void run() override
Expand Down

0 comments on commit cf8f3e6

Please sign in to comment.