Sha256: 93cc8beeb7fc4503ffa090e670c936fea9fffde1d9fc2160cab8a358c15f9b09

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

require 'spec_helper'

module Github
  module Archive
    describe ArchivedUrl do
      after(:each) do
        ArchivedUrl.delete_all
      end

      it "tracks processed urls" do
        FactoryGirl.create(:archived_url, url: 'test_url')
        ArchivedUrl.already_has?("test_url").should be_true
      end

      it "does not track unprocessed urls" do
        ArchivedUrl.already_has?("test_url").should be_false
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
github-archive-0.0.1 spec/github/archive/archived_url_spec.rb