summaryrefslogtreecommitdiff
path: root/help/test/unit/ticket_test.rb
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2012-10-29 11:18:51 -0700
committerjessib <jessib@riseup.net>2012-10-29 11:18:51 -0700
commit2de76b40a926985fce186c8ba18450d310ed4fa3 (patch)
tree89644aaeb9d20ae819819f211de5f5f8cf0dd8e8 /help/test/unit/ticket_test.rb
parent3ba2e664a26e96a93c8640b57241af6386db361e (diff)
parent8b9d5235faed6c15e8ef2e2dc76aec7f24d0bb50 (diff)
Merge branch 'help_develop' into develop
Diffstat (limited to 'help/test/unit/ticket_test.rb')
-rw-r--r--help/test/unit/ticket_test.rb8
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