Renamed components to lib in the JS project, as Ember has components and they mean something different.

This commit is contained in:
Robin Ward
2013-10-24 12:36:46 -04:00
parent 3909f93a7e
commit 9adcd1579d
41 changed files with 15 additions and 10 deletions
@@ -26,8 +26,8 @@ test("new user cannot upload images", function() {
Discourse.SiteSettings.newuser_max_images = 0;
this.stub(bootbox, "alert");
ok(!validUpload([{name: "image.png"}]));
ok(bootbox.alert.calledWith(I18n.t('post.errors.image_upload_not_allowed_for_new_user')));
ok(!validUpload([{name: "image.png"}]), 'the upload is not valid');
ok(bootbox.alert.calledWith(I18n.t('post.errors.image_upload_not_allowed_for_new_user')), 'the alert is called');
});
test("new user cannot upload attachments", function() {
+2 -1
View File
@@ -6,7 +6,7 @@
//= require ../../app/assets/javascripts/preload_store.js
// probe framework first
//= require ../../app/assets/javascripts/discourse/components/probes.js
//= require ../../app/assets/javascripts/discourse/lib/probes.js
// Externals we need to load first
//= require development/jquery-2.0.3.js
@@ -65,6 +65,7 @@
//= require helpers/assertions
//= require_tree ./fixtures
//= require_tree ./lib
//= require_tree .
//= require_self
//= require jshint_all