Sha256: 706632c65159bcc5fdfe910c303c07f81adee73aef2c17ae41e59f79830a10eb
Contents?: true
Size: 752 Bytes
Versions: 1
Compression:
Stored size: 752 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class EltTest < Test::Unit::TestCase fixtures :people, :users, :elts, :mails, :attachments, :subscribers def setup @elt = Elt.find(1) end def test_generated_id e = @elt.children.new e.subject = "Test: /de\ #?&subject" e.body = "Test de body" e.save @elt.add_child e assert_equal "Test_de_subject", e.id e = @elt.children.new e.subject = "Test&? de subject" e.body = "Test de body" e.save @elt.add_child e assert_equal "Test_de_subject_1", e.id end def test_vote_hidden_from_view vote = @elt.children.new vote.save @elt.add_child vote vote.body = "+1" vote.publish assert_equal -1, vote.result assert_equal 1, vote.parent.result end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
parlement-0.6 | test/unit/elt_test.rb |