diff options
author | Azul <azul@leap.se> | 2012-10-29 19:19:35 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-10-29 19:19:35 +0100 |
commit | 428aea3c577c44a3bb13cced23c5c0cafc5b4d93 (patch) | |
tree | e36349452e599c11b67e1912df2e68db5140c504 /help/test/unit/ticket_test.rb | |
parent | 3ba2e664a26e96a93c8640b57241af6386db361e (diff) | |
parent | 56273c13f54a872d02db286c90a8d5103cf7a663 (diff) |
Merge branch 'help_develop' into develop
Diffstat (limited to 'help/test/unit/ticket_test.rb')
-rw-r--r-- | help/test/unit/ticket_test.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/help/test/unit/ticket_test.rb b/help/test/unit/ticket_test.rb index c3a4759..6b63a23 100644 --- a/help/test/unit/ticket_test.rb +++ b/help/test/unit/ticket_test.rb @@ -41,18 +41,20 @@ class TicketTest < ActiveSupport::TestCase assert @sample.is_creator_validated? end +=begin +# TODO: do once have current_user stuff in order test "code if & only if not creator-validated" do + User.current_test = nil t1 = Ticket.create :title => 'test title' assert_not_nil t1.code assert_nil t1.created_by - User.current = 4 + User.current_test = 4 t2 = Ticket.create :title => 'test title' assert_nil t2.code assert_not_nil t2.created_by - - end +=end end |