Skip to content

Commit 5aa2d66

Browse files
committed
tests/acceptance/categories: Use "category" factory instead of fixtures
1 parent 0dd4556 commit 5aa2d66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/acceptance/categories-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import hasText from 'cargo/tests/helpers/has-text';
55
moduleForAcceptance('Acceptance | categories');
66

77
test('listing categories', async function(assert) {
8-
server.loadFixtures();
8+
server.create('category', { category: 'API bindings', crates_cnt: 0 });
9+
server.create('category', { category: 'Algorithms', crates_cnt: 1 });
10+
server.create('category', { category: 'Asynchronous', crates_cnt: 3910 });
911

1012
await visit('/categories');
1113

0 commit comments

Comments
 (0)