fixes rest_api page as reported on mailing list. Thanks Eric Allen for the fix!

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@842 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lrbalt 2008-05-12 15:28:34 +00:00
parent 11d64d6c0a
commit 8a794b480d
2 changed files with 10 additions and 1 deletions

View file

@ -196,7 +196,7 @@ Loading development environment (Rails 1.2.4)
<pre>
<code>
$ SITE="http://username:p4ssw0rd@<%= @request.host_with_port %>" irb \
$ SITE="http://username:p4ssw0rd@<%= request.host_with_port %>" irb \
-r tracks_api_wrapper.rb
irb(main):001:0&gt; inbox = Tracks::Context.find :first

View file

@ -5,6 +5,8 @@ require 'integrations_controller'
class IntegrationsController; def rescue_action(e) raise e end; end
class IntegrationsControllerTest < Test::Unit::TestCase
fixtures :users, :preferences, :projects, :contexts, :todos, :tags, :taggings
def setup
@controller = IntegrationsController.new
@request = ActionController::TestRequest.new
@ -15,4 +17,11 @@ class IntegrationsControllerTest < Test::Unit::TestCase
def test_truth
assert true
end
def test_page_load
login_as(:admin_user)
get :rest_api
assert_response :success
end
end