diff --git a/features/manages_aspects.feature b/features/manages_aspects.feature
index a96c15432..b81d19e1f 100644
--- a/features/manages_aspects.feature
+++ b/features/manages_aspects.feature
@@ -8,8 +8,7 @@ Feature: User manages aspects
Given I am signed in
When I follow "Home" in the header
And I follow "manage aspects"
- And I click '+ Add a new aspect'
+ And I follow "+ Add a new aspect"
And I fill in "Name" with "Dorm Mates" in the modal window
And I press "Create" in the modal window
Then I should see "Dorm Mates" in the header
- And I should see "Your aspect 'Dorm Mates' is empty."
diff --git a/public/javascripts/aspect-edit.js b/public/javascripts/aspect-edit.js
index 3b21d95b1..0039d8a40 100644
--- a/public/javascripts/aspect-edit.js
+++ b/public/javascripts/aspect-edit.js
@@ -71,7 +71,6 @@ var AspectEdit = {
},
onDeleteRequestSuccess: function(person, dropzone) {
- AspectEdit.decrementRequestsCounter();
person.removeClass('request');
person.attr('data-aspect_id', dropzone.attr('data-aspect_id'));
person.removeAttr('data-person_id');
@@ -142,7 +141,6 @@ var AspectEdit = {
person.fadeOut(400, function() {
person.remove();
});
- AspectEdit.decrementRequestsCounter();
}
});
}
@@ -153,22 +151,6 @@ var AspectEdit = {
}
},
- decrementRequestsCounter: function() {
- var $new_requests = $(".new_requests");
- var request_html = $new_requests.html();
- var old_request_count = request_html.match(/\d+/);
-
- if (old_request_count == 1) {
- $new_requests.html(
- request_html.replace(/ \(\d+\)/, '')
- );
- } else {
- $new_requests.html(
- request_html.replace(/\d+/, old_request_count - 1)
- );
- }
- },
-
alertUser: function(message) {
alert(message);
}
diff --git a/spec/javascripts/aspect-edit-spec.js b/spec/javascripts/aspect-edit-spec.js
index 7023084e1..bbb10ff5b 100644
--- a/spec/javascripts/aspect-edit-spec.js
+++ b/spec/javascripts/aspect-edit-spec.js
@@ -183,17 +183,9 @@ describe("AspectEdit", function() {
'
' +
'' +
'