Sha256: cab90655a570dc340fa4cbda4488101ad5a5fb5a08d27c177ecef0a147293809
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
require 'helper' class TestConfig < Test::Unit::TestCase test "Not raise argument error if google user is set by configuration block" do Picasa.config do |c| c.google_user = 'some.user' end assert_nothing_raised do Picasa::WebAlbums.new(nil) end end test "Take user passed to method instead of config" do Picasa.config do |c| c.google_user = 'some.user' end assert_equal 'some.user', Picasa.config.google_user Picasa::WebAlbums.new('important.user') assert_equal 'important.user', Picasa.config.google_user end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
picasa-0.2.2 | test/test_config.rb |