Total List
diff --git a/app/templates/components/models-table/button-edit.hbs b/app/templates/components/models-table/button-edit.hbs
index 1859845..cfec685 100644
--- a/app/templates/components/models-table/button-edit.hbs
+++ b/app/templates/components/models-table/button-edit.hbs
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/tests/acceptance/invoices-test.js b/tests/acceptance/invoices-test.js
index 45353f1..bc55b69 100644
--- a/tests/acceptance/invoices-test.js
+++ b/tests/acceptance/invoices-test.js
@@ -21,3 +21,14 @@ test("I can view the invoices in the table", function(assert) {
assert.equal(find('.table-footer .table-summary').text().trim(), 'Show 1 - 10 of 25' );
});
});
+
+test("I can click an invoice's edit button to be redirected", function(assert) {
+ server.createList('invoice', 25);
+ visit('/invoices');
+
+ click('.invoice-row .button-edit');
+
+ andThen(function() {
+ assert.equal(currentPath(), 'invoices.edit');
+ });
+});