From 6924dba26e5a455465e028027e89f42854320523 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 5 Nov 2015 10:32:28 -0700 Subject: [PATCH] Additional creation checks --- tests/acceptance/characteristics-test.js | 1 + tests/acceptance/species-test.js | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/acceptance/characteristics-test.js b/tests/acceptance/characteristics-test.js index f53da89..ad62807 100644 --- a/tests/acceptance/characteristics-test.js +++ b/tests/acceptance/characteristics-test.js @@ -66,6 +66,7 @@ test('creating /characteristics/new', function(assert) { andThen(function() { assert.equal(find(".flakes-information-box > legend").text().trim(), 'New Characteristic Name'); + assert.equal(server.db.characteristics.length, 1); }); }); }); diff --git a/tests/acceptance/species-test.js b/tests/acceptance/species-test.js index 656acd5..1b4fe85 100644 --- a/tests/acceptance/species-test.js +++ b/tests/acceptance/species-test.js @@ -65,6 +65,7 @@ test('creating /species/new', function(assert) { andThen(function() { assert.equal(find(".flakes-information-box > legend > em").text().trim(), 'New Species Name'); + assert.equal(server.db.species.length, 1); }); }); });