myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3582] trunk/test/functional/workflows_controller


From: noreply
Subject: [myexperiment-hackers] [3582] trunk/test/functional/workflows_controller_test.rb: Added test for tagging workflows with UTF-8 and ASCII tags
Date: Thu, 6 Jun 2013 08:49:43 +0000 (UTC)

Revision
3582
Author
fbacall
Date
2013-06-06 08:49:42 +0000 (Thu, 06 Jun 2013)

Log Message

Added test for tagging workflows with UTF-8 and ASCII tags

Modified Paths

Diff

Modified: trunk/test/functional/workflows_controller_test.rb (3581 => 3582)


--- trunk/test/functional/workflows_controller_test.rb	2013-06-04 14:36:01 UTC (rev 3581)
+++ trunk/test/functional/workflows_controller_test.rb	2013-06-06 08:49:42 UTC (rev 3582)
@@ -1,3 +1,4 @@
+# encoding: utf-8
 # myExperiment: test/functional/workflows_controller_test.rb
 #
 # Copyright (c) 2007 University of Manchester and the University of Southampton.
@@ -98,4 +99,18 @@
 
     TripleStore.instance.repo = {}
   end
+
+  def test_can_tag_workflow
+    login_as(:john)
+    wf = workflows(:workflow_dilbert)
+
+    assert_equal 0, wf.tags.size
+
+    post :tag, :id => wf.id, :tag_list => 'new tag, utf-8 ㈛ ㈘ ㈔'
+
+    assert_response :success
+    assert_equal 2, wf.tags.size
+    assert_includes wf.tags.map {|t| t.name}, 'utf-8 ㈛ ㈘ ㈔'
+    assert_includes wf.tags.map {|t| t.name}, 'new tag'
+  end
 end

reply via email to

[Prev in Thread] Current Thread [Next in Thread]