Sha256: 8f8a280edfde2d04c7a24e8970ee4056347bd98b9b16f4f18e8e24bfc80e46f3
Contents?: true
Size: 1.03 KB
Versions: 12
Compression:
Stored size: 1.03 KB
Contents
require 'spec_helper' module Arxiv describe Category do before(:all) do @category = Arxiv.get('1202.0819').primary_category @legacy_category = Arxiv.get('math.DG/0510097v1').categories.last end describe "abbreviation" do it "should fetch the category's abbreviation" do expect(@category.abbreviation).to eql("astro-ph.IM") end end describe "description" do it "should fetch the category's description" do expect(@category.description).to eql("Physics - Instrumentation and Methods for Astrophysics") end end describe "long_description" do it "should fetch the category's abbreviation and description"do expect(@category.long_description).to eql("astro-ph.IM (Physics - Instrumentation and Methods for Astrophysics)") end it "should return only the abbreviation when a description cannot be found (e.g. MSC classes)"do expect(@legacy_category.long_description).to eql("58D15 (Primary); 58B10 (Secondary)") end end end end
Version data entries
12 entries across 12 versions & 1 rubygems