summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2017-09-24 18:10:15 -0600
committermo <mo.khan@gmail.com>2017-09-24 18:10:15 -0600
commit8b662ee9be76c9a7e6fa65f5fd160c2b015e478b (patch)
tree27087a2dbac2177b7a6612db91030a1a755c42e9 /spec
parentc7ee6fd5562231619169918d8bd75093a01218d1 (diff)
fix broken spec.
Diffstat (limited to 'spec')
-rw-r--r--spec/helpers/application_helper_spec.rb16
1 files changed, 8 insertions, 8 deletions
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