Sha256: 70359f333ce3bb8e3809eb772acbe6f34bf506d775ddef2c2c4a40f749731cdc

Contents?: true

Size: 690 Bytes

Versions: 3

Compression:

Stored size: 690 Bytes

Contents

require "minitest/autorun"
require "webmock/minitest"
require "mocha"

require "picasa"

xml_parser = ENV["XML_PARSER"] || "libxml"

require xml_parser if ["nokogiri", "libxml", "ox"].include?(xml_parser)
MultiXml.parser = xml_parser

class MiniTest::Unit::TestCase
  def setup
    WebMock.disable_net_connect!
  end

  def image_path(filename)
    File.join("test", "fixtures", filename)
  end

  # Recording response is as simple as writing in terminal:
  # curl -is -H "GData-Version: 2" "https://picasaweb.google.com/data/feed/api/user/username?prettyprint=true" -X GET > test/fixtures/albums.txt
  def fixture(filename)
    File.read(File.join("test", "fixtures", filename))
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
picasa-0.5.4 test/helper.rb
picasa-0.5.3 test/helper.rb
picasa-0.5.2 test/helper.rb