Changeset 842

Show
Ignore:
Timestamp:
05/12/08 15:28:34
Author:
lrbalt
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tracks/app/views/integrations/rest_api.html.erb

    r837 r842  
    197197<pre> 
    198198<code> 
    199 $ SITE="http://username:p4ssw0rd@<%= @request.host_with_port %>" irb \ 
     199$ SITE="http://username:p4ssw0rd@<%= request.host_with_port %>" irb \ 
    200200    -r tracks_api_wrapper.rb 
    201201 
  • trunk/tracks/test/functional/integrations_controller_test.rb

    r619 r842  
    66 
    77class IntegrationsControllerTest < Test::Unit::TestCase 
     8  fixtures :users, :preferences, :projects, :contexts, :todos, :tags, :taggings 
     9 
    810  def setup 
    911    @controller = IntegrationsController.new 
     
    1618    assert true 
    1719  end 
     20   
     21  def test_page_load 
     22    login_as(:admin_user) 
     23    get :rest_api 
     24    assert_response :success 
     25  end 
     26   
    1827end