Sha256: f6a5dff4cddbed8becbaf8294b786398123ae0ecad6a7fce7600ea0c6717aec6

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 Bytes

Contents

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

describe Feedshub::FeedsHelper do
  #helper Feedshub::FeedsHelper

  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

2 entries across 2 versions & 1 rubygems

Version Path
feedshub-1.0.1 spec/dummy/spec/helpers/feeds_helper_spec.rb
feedshub-1.0.0 spec/dummy/spec/helpers/feeds_helper_spec.rb