Sha256: c41fbf5dfbfa5a47837faf85b9a0b315e3c9f77662c0ef1f7cd927796c53b26b

Contents?: true

Size: 564 Bytes

Versions: 3

Compression:

Stored size: 564 Bytes

Contents

require 'helper'

class TestGurunavi < Test::Unit::TestCase
  context "When using the PhotoSearchAPI" do
    setup do
      @client = gurunavi_test_client
    end

    should "fetch results when searching from photo search api with no options" do
      stub_get("https://api.gnavi.co.jp/PhotoSearchAPI/20150630?format=json&id=ga13300&keyid=#{@client.keyid}", "photos/photo_search.json")
      photos = @client.photo_search(id: "ga13300")

      assert_not_nil(photos)

      photos.count.should == 2

      photos[0].vote_id.should == "1855607"
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gurunavi-0.1.2 test/test_photos.rb
gurunavi-0.1.1 test/test_photos.rb
gurunavi-0.1.0 test/test_photos.rb