Sha256: 5783a5ec05e50848dc54af91849012a816f180fce0b80bc5c6e612126fb97123

Contents?: true

Size: 440 Bytes

Versions: 5

Compression:

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

5 entries across 5 versions & 1 rubygems

Version Path
tb_blog-1.3.5 spec/helpers/admin/posts_helper_spec.rb
tb_blog-1.4.1 spec/helpers/admin/posts_helper_spec.rb
tb_blog-1.4.0 spec/helpers/admin/posts_helper_spec.rb
tb_blog-1.3.4 spec/helpers/admin/posts_helper_spec.rb
tb_blog-1.4.beta1 spec/helpers/admin/posts_helper_spec.rb