Renamed components to lib in the JS project, as Ember has components and they mean something different.
This commit is contained in:
+2
-2
@@ -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() {
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user