diff options
| author | mo <mo.khan@gmail.com> | 2017-09-24 18:10:15 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2017-09-24 18:10:15 -0600 |
| commit | 8b662ee9be76c9a7e6fa65f5fd160c2b015e478b (patch) | |
| tree | 27087a2dbac2177b7a6612db91030a1a755c42e9 | |
| parent | c7ee6fd5562231619169918d8bd75093a01218d1 (diff) | |
fix broken spec.
| -rw-r--r-- | app/assets/javascripts/cakeside.js.coffee | 4 | ||||
| -rw-r--r-- | spec/helpers/application_helper_spec.rb | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/app/assets/javascripts/cakeside.js.coffee b/app/assets/javascripts/cakeside.js.coffee index ec405b12..3c5f91e7 100644 --- a/app/assets/javascripts/cakeside.js.coffee +++ b/app/assets/javascripts/cakeside.js.coffee @@ -51,8 +51,8 @@ window.csx = @photos_cache[cake_id] = photos photos.fetch(reset: true) photos - csx.Application.reqres.setHandler 'ProfilesRepository', => - @profiles ||= new csx.Collections.ProfilesCollection() + #csx.Application.reqres.setHandler 'ProfilesRepository', => + #@profiles ||= new csx.Collections.ProfilesCollection() @cakes.fetch(reset: true).done -> csx.Application.start() diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index b1c8ae68..c2d44e36 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -3,17 +3,17 @@ require "rails_helper" describe ApplicationHelper do describe "#backbone_collection_for" do it 'returns a script with the backbone collection' do - categories = Category.all - result = helper.backbone_collection_for(categories) - expect(result).to include("csx.Categories") - expect(result).to include("Backbone.Collection") + result = helper.backbone_collection_for(Category.all) + expect(result).to include("AutoCollection.install") + expect(result).to include("Category") + expect(result).to include("categories") end it 'escapes namespaces correctly' do - tags = ActsAsTaggableOn::Tag.all - result = helper.backbone_collection_for(tags) - expect(result).to include("csx.Tags") - expect(result).to include("Backbone.Collection") + result = helper.backbone_collection_for(ActsAsTaggableOn::Tag.all) + expect(result).to include("AutoCollection.install") + expect(result).to include("Tag") + expect(result).to include("acts_as_taggable_on_tags") end end end |
