Sha256: 6b7968f10a9a4f8f63accb86d7f1f0cb7a933226c2d265f6cddd3e167f94e64d
Contents?: true
Size: 583 Bytes
Versions: 2
Compression:
Stored size: 583 Bytes
Contents
require 'test_helper' class ConfigTest < 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picasa-0.2.1 | test/config_test.rb |
picasa-0.2.0 | test/config_test.rb |