Skip to content

Commit

Permalink
Test tidy up. Renaming meta table to metas.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Sik committed Nov 19, 2015
1 parent 3050780 commit b01b1d4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 27 deletions.
2 changes: 1 addition & 1 deletion api/app/Models/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class Meta extends BaseModel
{
public $table = 'meta';
public $table = 'metas';

protected $primaryKey = 'meta_id';

Expand Down
3 changes: 0 additions & 3 deletions api/database/factories/RevisionMocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
foreach ($articles as &$article) {
$tags = factory(App\Models\Tag::class, $faker->numberBetween(2, 4))->make();
$article['tags'] = $tags->lists('tag')->toArray();

$meta = $factory->raw(App\Models\Meta::class);
$article['metas'] = $meta;
}

// Pick a key to update
Expand Down
23 changes: 0 additions & 23 deletions app/src/app/admin/articles/article/meta/meta.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,6 @@ namespace app.admin.articles.article.meta {
query: sinon.stub()
};

article._metas = [
new common.models.Meta({
metaName: 'name',
metaContent: 'foo',
metaableId: article.articleId
}),
new common.models.Meta({
metaName: 'description',
metaContent: 'bar',
metaableId: article.articleId
}),
new common.models.Meta({
metaName: 'keyword',
metaContent: 'foo, bar',
metaableId: article.articleId
}),
new common.models.Meta({
metaName: 'canonical',
metaContent: 'https://foo.bar.com',
metaableId: article.articleId
})
];

beforeEach(() => {

module('app');
Expand Down

0 comments on commit b01b1d4

Please sign in to comment.