Sha256: 2833f66b997e81549f12da7a56a407d7769e3908e5a9ca6386496bbdaeb0b1c7

Contents?: true

Size: 420 Bytes

Versions: 5

Compression:

Stored size: 420 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper.rb'
require 'avatar/source/static_url_source'

class TestStaticUrlSource < Test::Unit::TestCase
  
  def setup
    @source = Avatar::Source::StaticUrlSource.new('foobar')
  end
  
  def test_nil_when_person_is_nil
    assert_nil @source.avatar_url_for(nil)
  end
  
  def test_not_nil_when_person_is_not_nil
    assert_equal 'foobar', @source.avatar_url_for(7)
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
avatar-0.0.2 test/test_static_url_source.rb
avatar-0.0.4 test/test_static_url_source.rb
avatar-0.0.1 test/test_static_url_source.rb
avatar-0.0.3 test/test_static_url_source.rb
avatar-0.0.5 test/test_static_url_source.rb