myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2815] branches/rails2/test/functional/api_contro


From: noreply
Subject: [myexperiment-hackers] [2815] branches/rails2/test/functional/api_controller_test.rb: readded custom request object in api tests
Date: Wed, 16 Nov 2011 19:08:38 -0500 (EST)

Revision
2815
Author
dgc
Date
2011-11-16 19:08:38 -0500 (Wed, 16 Nov 2011)

Log Message

readded custom request object in api tests

Modified Paths

Diff

Modified: branches/rails2/test/functional/api_controller_test.rb (2814 => 2815)


--- branches/rails2/test/functional/api_controller_test.rb	2011-11-16 16:57:40 UTC (rev 2814)
+++ branches/rails2/test/functional/api_controller_test.rb	2011-11-17 00:08:38 UTC (rev 2815)
@@ -8,6 +8,12 @@
 
 class ApiControllerTest < ActionController::TestCase
 
+  def setup
+    @controller = ApiController.new
+    @request    = TestRequestWithQuery.new
+    @response   = ActionController::TestResponse.new
+  end
+
   fixtures :workflows, :users, :content_types, :licenses, :ontologies, :predicates, :packs
 
   def test_workflows

reply via email to

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