Sha256: f06448dc3988183f6178ced8e981d481b7856af0d94f87c1c01196798d506c40
Contents?: true
Size: 602 Bytes
Versions: 4
Compression:
Stored size: 602 Bytes
Contents
require 'helper' class TestPost < Test::Unit::TestCase def setup global_setup @post = Stars::Post.new(:name => 'post') end def test_short_name s = "" 36.times { s << "x" } @post.name = s assert_equal true, @post.short_name.include?('...') end def test_full_short_name s = "" 10.times { s << "x" } @post.name = s assert_equal false, @post.short_name.include?('...') end def test_moar @post.stubs(:service).returns("Favstar") Stars::Favstar.expects(:more).returns("favstar more") assert_equal "favstar more", @post.more end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
stars-0.5.3 | test/test_post.rb |
stars-0.5.2 | test/test_post.rb |
stars-0.5.1 | test/test_post.rb |
stars-0.5.0 | test/test_post.rb |