summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/tags/ui/tag_list.spec.js
diff options
context:
space:
mode:
authorPatrick Maia <pixelated-team+patrick@thoughtworks.com>2014-08-08 17:51:33 -0300
committerPatrick Maia <patrickjourdanmaia@gmail.com>2014-08-08 17:51:33 -0300
commit97e762a0832593031ae71ab1e11d4c0e377a00f4 (patch)
tree213e835f4effbaf97f0922e5941065b1329d0501 /web-ui/test/spec/tags/ui/tag_list.spec.js
parentf22a6a32e901f52b2b3f2b3fd8625c43302ff001 (diff)
replaces Smail by Pixelated in all js files
Diffstat (limited to 'web-ui/test/spec/tags/ui/tag_list.spec.js')
-rw-r--r--web-ui/test/spec/tags/ui/tag_list.spec.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/web-ui/test/spec/tags/ui/tag_list.spec.js b/web-ui/test/spec/tags/ui/tag_list.spec.js
index af3ddd3a..f39fbf36 100644
--- a/web-ui/test/spec/tags/ui/tag_list.spec.js
+++ b/web-ui/test/spec/tags/ui/tag_list.spec.js
@@ -16,7 +16,7 @@ describeComponent('tags/ui/tag_list', function () {
this.component.attr.default = false;
var tagList = [tag('tag1', 1), tag('tag2', 2), tag('tag3', 3)];
- $(document).trigger(Smail.events.ui.tagList.load, {tags: tagList});
+ $(document).trigger(Pixelated.events.ui.tagList.load, {tags: tagList});
var items = _.map(this.$node.find('li'), function(el) {
return $(el).attr('id');
@@ -28,7 +28,7 @@ describeComponent('tags/ui/tag_list', function () {
it('should render the default tags when tagsList:load is received and default attribute is true', function() {
var tagList = [tag('tag1', 1, false), tag('tag2', 2, true), tag('tag3', 3, true)];
- $(document).trigger(Smail.events.ui.tagList.load, {tags: tagList});
+ $(document).trigger(Pixelated.events.ui.tagList.load, {tags: tagList});
var items = _.map(this.component.select('defaultTagList').find('li'), function(el) {
return $(el).attr('id');
@@ -40,7 +40,7 @@ describeComponent('tags/ui/tag_list', function () {
it('should render the custom tags when tagsList:load is received and default attribute is false', function() {
var tagList = [tag('tag1', 1, false), tag('tag2', 2, true), tag('tag3', 3, true)];
- $(document).trigger(Smail.events.ui.tagList.load, {tags: tagList});
+ $(document).trigger(Pixelated.events.ui.tagList.load, {tags: tagList});
var items = _.map(this.component.select('customTagList').find('li'), function(el) {
return $(el).attr('id');
@@ -51,23 +51,23 @@ describeComponent('tags/ui/tag_list', function () {
it('should trigger event to tell that tags were loaded sending the current tag', function () {
this.component.attr.currentTag = 'Drafts';
- var tagsLoadedEvent = spyOnEvent(document, Smail.events.ui.tags.loaded);
+ var tagsLoadedEvent = spyOnEvent(document, Pixelated.events.ui.tags.loaded);
- $(document).trigger(Smail.events.ui.tagList.load, {tags: [] });
+ $(document).trigger(Pixelated.events.ui.tagList.load, {tags: [] });
expect(tagsLoadedEvent).toHaveBeenTriggeredOnAndWith(document, { tag: 'Drafts'});
});
it('should send tag as undefined when tags are loaded and no tag was selected yet', function () {
- var tagsLoadedEvent = spyOnEvent(document, Smail.events.ui.tags.loaded);
+ var tagsLoadedEvent = spyOnEvent(document, Pixelated.events.ui.tags.loaded);
- $(document).trigger(Smail.events.ui.tagList.load, {tags: [] });
+ $(document).trigger(Pixelated.events.ui.tagList.load, {tags: [] });
expect(tagsLoadedEvent).toHaveBeenTriggeredOnAndWith(document, { tag: undefined });
});
it('should save the current tag when a tag is selected', function () {
- $(document).trigger(Smail.events.ui.tag.selected, { tag: 'amazing'});
+ $(document).trigger(Pixelated.events.ui.tag.selected, { tag: 'amazing'});
expect(this.component.attr.currentTag).toEqual('amazing');
});