Sha256: 392b056a60ff71fe632f3bf997b69fa30d4aa2e188b147ab818adb9aeb62edf1

Contents?: true

Size: 376 Bytes

Versions: 3

Compression:

Stored size: 376 Bytes

Contents

require 'rails_helper'

RSpec.describe BlogHelper, type: :helper do

  describe '#disqus_comment_count_for_post' do
    it 'should return a tag with the disqus identifier' do
      post = FactoryBot.create(:spud_post)
      result = helper.disqus_comment_count_for_post(post)
      expect(result).to include("data-disqus-identifier=\"#{post.identifier}\"")
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tb_blog-1.4.4 spec/helpers/blog_helper_spec.rb
tb_blog-1.4.3 spec/helpers/blog_helper_spec.rb
tb_blog-1.4.2 spec/helpers/blog_helper_spec.rb