Sha256: e6061cd7ef32f5171115447b6f6e9e4fcc0122e136f0c4280e66f7ef960d7257

Contents?: true

Size: 377 Bytes

Versions: 6

Compression:

Stored size: 377 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 = FactoryGirl.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

6 entries across 6 versions & 1 rubygems

Version Path
tb_blog-1.3.5 spec/helpers/blog_helper_spec.rb
tb_blog-1.4.1 spec/helpers/blog_helper_spec.rb
tb_blog-1.4.0 spec/helpers/blog_helper_spec.rb
tb_blog-1.3.4 spec/helpers/blog_helper_spec.rb
tb_blog-1.4.beta1 spec/helpers/blog_helper_spec.rb
tb_blog-1.3.3 spec/helpers/blog_helper_spec.rb