Sha256: ca8d00c7a649b3c9902de98f421594c0bced0c73e3b6a3256ff6b3ca6aef1881

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

require 'spec_helper'
module Rea
  describe DBLP, "grab" do

    def grab(x)
      DBLP.grab(x)
    end

    it 'works on an existing entry' do
      grab("journals/tse/DamasLDL05").should be_a(Hash)
    end

    it 'raises a NotFoundError on unexisting entry' do
      lambda{ grab("nosuchone") }.should raise_error(NotFoundError, /nosuchone/)
    end

  end # describe DBLP#grab
end # module Rea

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rea-0.0.1 spec/rea-dblp/test_grab.rb