<commit_before>require 'spec_helper'

describe FeedUpdateWorker do
  before { StripeMock.start }
  after { StripeMock.stop }

  it "processes a url" do
    @collection = FactoryGirl.create :collection
    @worker = FeedUpdateWorker.new
    FeedPopUp.should_receive(:update_from_feed).with("http://fakefeed.test", @collection.id).and_return(true)
    @worker.perform("http://fakefeed.test", @collection.id).should eq true
  end

end<commit_msg>fix failing test now that feed signature changed<commit_after>require 'spec_helper'

describe FeedUpdateWorker do
  before { StripeMock.start }
  after { StripeMock.stop }

  it "processes a url" do
    @collection = FactoryGirl.create :collection
    @worker = FeedUpdateWorker.new
    FeedPopUp.should_receive(:update_from_feed).with("http://fakefeed.test", @collection.id, false, nil).and_return(true)
    @worker.perform("http://fakefeed.test", @collection.id).should eq true
  end

end
{'fraction_non_alphanumeric': 0.1157556270096463, 'fraction_numerical': 0.0, 'mean_word_length': 4.765432098765432, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4655476', 'n_tokens_mistral': 302, 'n_tokens_neox': 283, 'n_words': 62}