Sha256: 5f72b5359fa012665d87cc05508e34c459c9c1b9669400ca4f41a15c2a511886
Contents?: true
Size: 439 Bytes
Versions: 3
Compression:
Stored size: 439 Bytes
Contents
require 'rails_helper' RSpec.describe Admin::PostsHelper, type: :helper do describe '#link_to_disqus_comment_count' do it 'should return a link with the disqus identifier' do post = FactoryBot.create(:spud_post) result = helper.link_to_disqus_comment_count(post) expect(result).to include("data-disqus-identifier=\"#{post.identifier}\"") expect(result).to include('testblog.disqus.com') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tb_blog-1.4.4 | spec/helpers/admin/posts_helper_spec.rb |
tb_blog-1.4.3 | spec/helpers/admin/posts_helper_spec.rb |
tb_blog-1.4.2 | spec/helpers/admin/posts_helper_spec.rb |