Sha256: 2fde7c86547f2532ff7e73ba716a2994a42b764815af878df9f7d1a95f1ef945

Contents?: true

Size: 788 Bytes

Versions: 6

Compression:

Stored size: 788 Bytes

Contents

require 'spec_helper'

module Arxiv
  describe Author do
    before(:all) { @author = Arxiv.get('1202.0819').authors.first }

    describe "name" do
      it "should return the author's name" do
        expect(@author.name).to eql("Michael T. Murphy")
      end
    end

    describe "first_name" do
      it "should return the author's first name" do
        expect(@author.first_name).to eql("Michael T.")
      end
    end

    describe "last_name" do
      it "should return the author's last name" do
        expect(@author.last_name).to eql("Murphy")
      end
    end

    describe "affiliations" do
      it "should return an array of the author's affiliations" do
        expect(@author.affiliations).to include("Swinburne University of Technology")
      end
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arxiv-0.1.11 spec/arxiv/models/author_spec.rb
arxiv-0.1.10 spec/arxiv/models/author_spec.rb
arxiv-0.1.9 spec/arxiv/models/author_spec.rb
arxiv-0.1.8 spec/arxiv/models/author_spec.rb
arxiv-0.1.7 spec/arxiv/models/author_spec.rb
arxiv-0.1.6 spec/arxiv/models/author_spec.rb