Sha256: 169acdf29848122c945cae92fc99292161c5d2e9575752c3fe06f5652c3f7dc5

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

require 'spec_helper'
require 'feedshub/feeds/git_feeds_handler'

describe Feedshub::FeedsHelper do

  describe 'github_feeds' do

    before :each do
      links =["File://#{Rails.root}/spec/resources/member.atom"]
      GitFeedsHandler.fetch_and_create_feeds_enrties(links)
      ENV.stub(:[]).with("github_feeds_number").and_return("10")
    end

    context 'check content correctness' do

      it 'has to render partial github_feeds with atom entries' do
        expect(github_feeds 20).to match /vairix-dfernandez/
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
feedshub-1.0.2 spec/dummy/spec/helpers/feeds_helper_spec.rb