Sha256: 0e7c5c004730560f9caaae4dab96eb45947245eb933d144fb657faa5c5921107

Contents?: true

Size: 443 Bytes

Versions: 12

Compression:

Stored size: 443 Bytes

Contents

require 'spec_helper'

module Arxiv
  describe Link do
    before(:all) { @link = Arxiv.get('1202.0819').links.last }

    describe "content_type" do
      it "should fetch the link's content type" do
        expect(@link.content_type).to eql('application/pdf')
      end
    end

    describe "url" do
      it "should fetch the link's url" do
        expect(@link.url).to eql('http://arxiv.org/pdf/1202.0819v1')
      end
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
arxiv-0.1.11 spec/arxiv/models/link_spec.rb
arxiv-0.1.10 spec/arxiv/models/link_spec.rb
arxiv-0.1.9 spec/arxiv/models/link_spec.rb
arxiv-0.1.8 spec/arxiv/models/link_spec.rb
arxiv-0.1.7 spec/arxiv/models/link_spec.rb
arxiv-0.1.6 spec/arxiv/models/link_spec.rb
arxiv-0.1.5 spec/arxiv/models/link_spec.rb
arxiv-0.1.4 spec/arxiv/models/link_spec.rb
arxiv-0.1.3 spec/arxiv/models/link_spec.rb
arxiv-0.1.2 spec/arxiv/models/link_spec.rb
arxiv-0.1.1 spec/arxiv/models/link_spec.rb
arxiv-0.1.0 spec/arxiv/models/link_spec.rb