Sha256: ee04847268d35abe53576fb38ad14d448ef042a9308da661e236db6c42a55cd2

Contents?: true

Size: 577 Bytes

Versions: 2

Compression:

Stored size: 577 Bytes

Contents

require 'spec_helper'

describe Google::Scholar::Base do
  subject {Google::Scholar::Base}
  describe "#search_author" do
    it "should initialize with the search author string" do
      Google::Scholar::Scraper.should_receive(:new).with(Google::Scholar.author_search_url("test"))
      subject.search_author("test")
    end
    it "should return a Author Search object" do
      Google::Scholar::Scraper.should_receive(:new).with(Google::Scholar.author_search_url("test"))
      subject.search_author("test").should be_kind_of(Google::Scholar::AuthorSearch)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
google-scholar-0.0.2 spec/lib/google/scholar/base_spec.rb
google-scholar-0.0.1 spec/lib/google/scholar/base_spec.rb